aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/redis_pool.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/libserver/redis_pool.h
parentb266445f47dec06392a7e058f499325fa3c052b9 (diff)
downloadrspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz
rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/libserver/redis_pool.h')
-rw-r--r--src/libserver/redis_pool.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/libserver/redis_pool.h b/src/libserver/redis_pool.h
index 7a9bf99ab..0df650326 100644
--- a/src/libserver/redis_pool.h
+++ b/src/libserver/redis_pool.h
@@ -18,6 +18,10 @@
#include "config.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct rspamd_redis_pool;
struct rspamd_config;
struct redisAsyncContext;
@@ -35,8 +39,8 @@ struct rspamd_redis_pool *rspamd_redis_pool_init (void);
* @param ev_base
*/
void rspamd_redis_pool_config (struct rspamd_redis_pool *pool,
- struct rspamd_config *cfg,
- struct ev_loop *ev_base);
+ struct rspamd_config *cfg,
+ struct ev_loop *ev_base);
/**
@@ -48,7 +52,7 @@ void rspamd_redis_pool_config (struct rspamd_redis_pool *pool,
* @param port
* @return
*/
-struct redisAsyncContext* rspamd_redis_pool_connect (
+struct redisAsyncContext *rspamd_redis_pool_connect (
struct rspamd_redis_pool *pool,
const gchar *db, const gchar *password,
const char *ip, int port);
@@ -65,7 +69,8 @@ enum rspamd_redis_pool_release_type {
* @param ctx
*/
void rspamd_redis_pool_release_connection (struct rspamd_redis_pool *pool,
- struct redisAsyncContext *ctx, enum rspamd_redis_pool_release_type how);
+ struct redisAsyncContext *ctx,
+ enum rspamd_redis_pool_release_type how);
/**
* Stops redis pool and destroys it
@@ -78,6 +83,10 @@ void rspamd_redis_pool_destroy (struct rspamd_redis_pool *pool);
* @param type
* @return
*/
-const gchar* rspamd_redis_type_to_string (int type);
+const gchar *rspamd_redis_type_to_string (int type);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* SRC_LIBSERVER_REDIS_POOL_H_ */