소스 검색

get_from macro contributed by Juha Heinanen

Jan Janak 23 년 전
부모
커밋
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
  */