aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_expressions.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-08 15:22:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-08 15:22:05 +0100
commitc271eb36656a4ff88a9c8c1d59934949260275a3 (patch)
tree3dd586e38b5b37cfebc7c12b6ff6f434904167c7 /src/libmime/mime_expressions.h
parentb266445f47dec06392a7e058f499325fa3c052b9 (diff)
downloadrspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz
rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/libmime/mime_expressions.h')
-rw-r--r--src/libmime/mime_expressions.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/libmime/mime_expressions.h b/src/libmime/mime_expressions.h
index 2677b9968..935027482 100644
--- a/src/libmime/mime_expressions.h
+++ b/src/libmime/mime_expressions.h
@@ -10,6 +10,10 @@
#include "expression.h"
#include "contrib/libucl/ucl.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct rspamd_task;
struct rspamd_config;
@@ -34,8 +38,8 @@ struct expression_argument {
};
-typedef gboolean (*rspamd_internal_func_t)(struct rspamd_task *,
- GArray *args, void *user_data);
+typedef gboolean (*rspamd_internal_func_t) (struct rspamd_task *,
+ GArray *args, void *user_data);
/**
@@ -44,8 +48,8 @@ typedef gboolean (*rspamd_internal_func_t)(struct rspamd_task *,
* @param func pointer to function
*/
void register_expression_function (const gchar *name,
- rspamd_internal_func_t func,
- void *user_data);
+ rspamd_internal_func_t func,
+ void *user_data);
/**
* Set global limit of regexp data size to be processed
@@ -54,4 +58,8 @@ void register_expression_function (const gchar *name,
*/
guint rspamd_mime_expression_set_re_limit (guint limit);
+#ifdef __cplusplus
+}
+#endif
+
#endif