aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
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/client
parentb266445f47dec06392a7e058f499325fa3c052b9 (diff)
downloadrspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz
rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/client')
-rw-r--r--src/client/rspamdclient.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/rspamdclient.h b/src/client/rspamdclient.h
index 9fced29af..dc274b7a8 100644
--- a/src/client/rspamdclient.h
+++ b/src/client/rspamdclient.h
@@ -20,6 +20,10 @@
#include "ucl.h"
#include "contrib/libev/ev.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct rspamd_client_connection;
struct rspamd_http_message;
@@ -48,6 +52,7 @@ typedef void (*rspamd_client_callback) (
GError *err);
struct rspamd_http_context;
+
/**
* Start rspamd worker or controller command
* @param ev_base event base
@@ -56,7 +61,7 @@ struct rspamd_http_context;
* @param timeout timeout in seconds
* @return
*/
-struct rspamd_client_connection * rspamd_client_init (
+struct rspamd_client_connection *rspamd_client_init (
struct rspamd_http_context *http_ctx,
struct ev_loop *ev_base,
const gchar *name,
@@ -92,4 +97,8 @@ gboolean rspamd_client_command (
*/
void rspamd_client_destroy (struct rspamd_client_connection *conn);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* RSPAMDCLIENT_H_ */