diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-08 15:22:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-08 15:22:05 +0100 |
commit | c271eb36656a4ff88a9c8c1d59934949260275a3 (patch) | |
tree | 3dd586e38b5b37cfebc7c12b6ff6f434904167c7 /src/libmime/email_addr.h | |
parent | b266445f47dec06392a7e058f499325fa3c052b9 (diff) | |
download | rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip |
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/libmime/email_addr.h')
-rw-r--r-- | src/libmime/email_addr.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/libmime/email_addr.h b/src/libmime/email_addr.h index 666ded0e9..69aa2aa00 100644 --- a/src/libmime/email_addr.h +++ b/src/libmime/email_addr.h @@ -20,6 +20,11 @@ #include "libutil/mem_pool.h" #include "libutil/ref.h" + +#ifdef __cplusplus +extern "C" { +#endif + struct rspamd_mime_header; enum rspamd_email_address_flags { @@ -62,7 +67,7 @@ struct rspamd_task; * @param len length of string * @return */ -struct rspamd_email_address * rspamd_email_address_from_smtp ( +struct rspamd_email_address *rspamd_email_address_from_smtp ( const gchar *str, guint len); /** @@ -75,9 +80,9 @@ struct rspamd_email_address * rspamd_email_address_from_smtp ( * @return */ GPtrArray *rspamd_email_address_from_mime (rspamd_mempool_t *pool, - const gchar *hdr, - guint len, - GPtrArray *src); + const gchar *hdr, + guint len, + GPtrArray *src); /** * Destroys list of email addresses @@ -87,4 +92,9 @@ void rspamd_email_address_list_destroy (gpointer ptr); void rspamd_email_address_free (struct rspamd_email_address *addr); + +#ifdef __cplusplus +} +#endif + #endif /* SRC_LIBMIME_EMAIL_ADDR_H_ */ |