Browse Source

get_from macro contributed by Juha Heinanen

Jan Janak 23 năm trước cách đây
mục cha
commit
1d98277a96
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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
  */