summaryrefslogtreecommitdiffstats
path: root/src/dynamic_cfg.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-10-02 19:44:49 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-10-02 19:44:49 +0400
commit5d1f19fc9988261e23f190c216eb17958f178904 (patch)
tree5ce8f92a06147a887364d4d66f5ea3d8b77c988b /src/dynamic_cfg.h
parent80d2b194b1e8ce902a2feac5389bc4de8d5732a5 (diff)
downloadrspamd-5d1f19fc9988261e23f190c216eb17958f178904.tar.gz
rspamd-5d1f19fc9988261e23f190c216eb17958f178904.zip
* Add support for dynamic configuration to the controller's interface.
* File maps are now being watched even if they don't exist on rspamd start. Several fixes to dynamic configuration logic.
Diffstat (limited to 'src/dynamic_cfg.h')
-rw-r--r--src/dynamic_cfg.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/dynamic_cfg.h b/src/dynamic_cfg.h
index 494a48835..c791a3c38 100644
--- a/src/dynamic_cfg.h
+++ b/src/dynamic_cfg.h
@@ -41,5 +41,26 @@ void init_dynamic_config (struct config_file *cfg);
*/
gboolean dump_dynamic_config (struct config_file *cfg);
+/**
+ * Add symbol for specified metric
+ * @param cfg config file object
+ * @param metric metric's name
+ * @param symbol symbol's name
+ * @param value value of symbol
+ * @return
+ */
+gboolean add_dynamic_symbol (struct config_file *cfg, const gchar *metric, const gchar *symbol, gdouble value);
+
+
+/**
+ * Add action for specified metric
+ * @param cfg config file object
+ * @param metric metric's name
+ * @param action action's name
+ * @param value value of symbol
+ * @return
+ */
+gboolean add_dynamic_action (struct config_file *cfg, const gchar *metric, const gchar *action, gdouble value);
+
#endif /* DYNAMIC_CFG_H_ */