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/message.h | |
parent | b266445f47dec06392a7e058f499325fa3c052b9 (diff) | |
download | rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip |
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r-- | src/libmime/message.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h index eb260cd77..17c4ec5b9 100644 --- a/src/libmime/message.h +++ b/src/libmime/message.h @@ -16,6 +16,10 @@ #include <unicode/uchar.h> #include <unicode/utext.h> +#ifdef __cplusplus +extern "C" { +#endif + struct rspamd_task; struct controller_session; struct html_content; @@ -106,9 +110,9 @@ struct rspamd_mime_text_part { GArray *utf_words; UText utf_stripped_text; /* Used by libicu to represent the utf8 content */ - GPtrArray *newlines; /**< positions of newlines in text, relative to content*/ + GPtrArray *newlines; /**< positions of newlines in text, relative to content*/ struct html_content *html; - GList *exceptions; /**< list of offsets of urls */ + GList *exceptions; /**< list of offsets of urls */ struct rspamd_mime_part *mime_part; guint flags; @@ -146,8 +150,9 @@ void rspamd_message_process (struct rspamd_task *task); * @return An array of header's values or NULL. It is NOT permitted to free array or values. */ GPtrArray *rspamd_message_get_header_array (struct rspamd_task *task, - const gchar *field, - gboolean strong); + const gchar *field, + gboolean strong); + /** * Get an array of mime parts header's values with specified header's name using raw headers * @param task worker task structure @@ -156,8 +161,8 @@ GPtrArray *rspamd_message_get_header_array (struct rspamd_task *task, * @return An array of header's values or NULL. It is NOT permitted to free array or values. */ GPtrArray *rspamd_message_get_mime_header_array (struct rspamd_task *task, - const gchar *field, - gboolean strong); + const gchar *field, + gboolean strong); /** * Get an array of header's values with specified header's name using raw headers @@ -167,9 +172,9 @@ GPtrArray *rspamd_message_get_mime_header_array (struct rspamd_task *task, * @return An array of header's values or NULL. It is NOT permitted to free array or values. */ GPtrArray *rspamd_message_get_header_from_hash (GHashTable *htb, - rspamd_mempool_t *pool, - const gchar *field, - gboolean strong); + rspamd_mempool_t *pool, + const gchar *field, + gboolean strong); /** @@ -184,6 +189,10 @@ enum rspamd_cte rspamd_cte_from_string (const gchar *str); * @param ct * @return */ -const gchar* rspamd_cte_to_string (enum rspamd_cte ct); +const gchar *rspamd_cte_to_string (enum rspamd_cte ct); + +#ifdef __cplusplus +} +#endif #endif |