aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamdclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/rspamdclient.h')
-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_ */