Explorar o código

get_from macro contributed by Juha Heinanen

Jan Janak %!s(int64=23) %!d(string=hai) anos
pai
achega
1d98277a96
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      parser/parse_from.h

+ 5 - 0
parser/parse_from.h

@@ -31,6 +31,11 @@
 
 #include "msg_parser.h"
 
+
+/* casting macro for accessing From body */
+#define get_from(p_msg)  ((struct to_body*)(p_msg)->from->parsed)
+
+
 /*
  * To header field parser
  */