rfc822: Index headers by name
[ccan] / ccan / rfc822 / rfc822.h
index 19fccea8f35afbb3d36b0b68c420f7e30ef3572c..24fb3cc37e74e2b58a8a0a1f4d00225708fe9d95 100644 (file)
@@ -180,11 +180,10 @@ struct bytestring rfc822_header_unfolded_value(struct rfc822_msg *msg,
 bool rfc822_header_is(struct rfc822_msg *msg, struct rfc822_header *hdr,
                      const char *name);
 
+struct rfc822_header *rfc822_first_header_of_name(struct rfc822_msg *msg,
+                                                 const char *name);
 struct rfc822_header *rfc822_next_header_of_name(struct rfc822_msg *msg,
                                                 struct rfc822_header *hdr,
                                                 const char *name);
 
-#define rfc822_first_header_of_name(_msg, _name) \
-       (rfc822_next_header_of_name((_msg), NULL, (_name)))
-
 #endif /* CCAN_RFC822_H_ */