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/libutil/libev_helper.h | |
parent | b266445f47dec06392a7e058f499325fa3c052b9 (diff) | |
download | rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip |
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/libutil/libev_helper.h')
-rw-r--r-- | src/libutil/libev_helper.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libutil/libev_helper.h b/src/libutil/libev_helper.h index cf52db557..8502043e6 100644 --- a/src/libutil/libev_helper.h +++ b/src/libutil/libev_helper.h @@ -20,12 +20,17 @@ #include "config.h" #include "contrib/libev/ev.h" + +#ifdef __cplusplus +extern "C" { +#endif + /* * This module is a little helper to simplify libevent->libev transition * It allows to create timed IO watchers utilising both */ -typedef void (*rspamd_ev_cb)(int fd, short what, void *ud); +typedef void (*rspamd_ev_cb) (int fd, short what, void *ud); struct rspamd_io_ev { ev_io io; @@ -45,7 +50,7 @@ struct rspamd_io_ev { * @param ud */ void rspamd_ev_watcher_init (struct rspamd_io_ev *ev, - int fd, short what, rspamd_ev_cb cb, void *ud); + int fd, short what, rspamd_ev_cb cb, void *ud); /** * Start watcher with the specific timeout @@ -75,4 +80,8 @@ void rspamd_ev_watcher_reschedule (struct ev_loop *loop, struct rspamd_io_ev *ev, short what); +#ifdef __cplusplus +} +#endif + #endif |