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/libserver/dynamic_cfg.h | |
parent | b266445f47dec06392a7e058f499325fa3c052b9 (diff) | |
download | rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip |
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/libserver/dynamic_cfg.h')
-rw-r--r-- | src/libserver/dynamic_cfg.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/src/libserver/dynamic_cfg.h b/src/libserver/dynamic_cfg.h index ebbc8b650..938fbb074 100644 --- a/src/libserver/dynamic_cfg.h +++ b/src/libserver/dynamic_cfg.h @@ -19,6 +19,11 @@ #include "config.h" #include "cfg_file.h" + +#ifdef __cplusplus +extern "C" { +#endif + /** * Init dynamic configuration using map logic and specific configuration * @param cfg config file @@ -41,13 +46,13 @@ gboolean dump_dynamic_config (struct rspamd_config *cfg); * @return */ gboolean add_dynamic_symbol (struct rspamd_config *cfg, - const gchar *metric, - const gchar *symbol, - gdouble value); + const gchar *metric, + const gchar *symbol, + gdouble value); gboolean remove_dynamic_symbol (struct rspamd_config *cfg, - const gchar *metric, - const gchar *symbol); + const gchar *metric, + const gchar *symbol); /** * Add action for specified metric @@ -58,15 +63,19 @@ gboolean remove_dynamic_symbol (struct rspamd_config *cfg, * @return */ gboolean add_dynamic_action (struct rspamd_config *cfg, - const gchar *metric, - guint action, - gdouble value); + const gchar *metric, + guint action, + gdouble value); /** * Removes dynamic action */ gboolean remove_dynamic_action (struct rspamd_config *cfg, - const gchar *metric, - guint action); + const gchar *metric, + guint action); + +#ifdef __cplusplus +} +#endif #endif /* DYNAMIC_CFG_H_ */ |