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/worker_private.h | |
parent | b266445f47dec06392a7e058f499325fa3c052b9 (diff) | |
download | rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip |
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/worker_private.h')
-rw-r--r-- | src/worker_private.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/worker_private.h b/src/worker_private.h index 6d0e763aa..cef2c9a19 100644 --- a/src/worker_private.h +++ b/src/worker_private.h @@ -23,6 +23,10 @@ #include "libserver/cfg_file.h" #include "libserver/rspamd_control.h" +#ifdef __cplusplus +extern "C" { +#endif + static const guint64 rspamd_worker_magic = 0xb48abc69d601dc1dULL; struct rspamd_lang_detector; @@ -52,13 +56,14 @@ struct rspamd_worker_ctx { /* Language detector */ struct rspamd_lang_detector *lang_det; }; + /* * Init scanning routines */ void rspamd_worker_init_scanner (struct rspamd_worker *worker, - struct ev_loop *ev_base, - struct rspamd_dns_resolver *resolver, - struct rspamd_lang_detector **plang_det); + struct ev_loop *ev_base, + struct rspamd_dns_resolver *resolver, + struct rspamd_lang_detector **plang_det); /* * Called on forced timeout @@ -70,4 +75,8 @@ void rspamd_task_timeout (EV_P_ ev_timer *w, int revents); */ void rspamd_worker_guard_handler (EV_P_ ev_io *w, int revents); +#ifdef __cplusplus +} +#endif + #endif |