2
0
Эх сурвалжийг харах

get_from macro contributed by Juha Heinanen

Jan Janak 23 жил өмнө
parent
commit
1d98277a96
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  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
  */