Ver Fonte

get_from macro contributed by Juha Heinanen

Jan Janak há 23 anos atrás
pai
commit
1d98277a96
1 ficheiros alterados com 5 adições e 0 exclusões
  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
  */