aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-03 13:22:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-03 13:22:43 +0000
commit0ba131089412a41c632703109903185d1e057aff (patch)
tree9ef31256b246bc66163d7ce0b6ce2edb47dc6d7c /src/libserver/cfg_file.h
parent16c8c89c354a62aae901c63a43688a164b4d9ea0 (diff)
downloadrspamd-0ba131089412a41c632703109903185d1e057aff.tar.gz
rspamd-0ba131089412a41c632703109903185d1e057aff.zip
[Minor] Move common functions from libmime
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 80bf86f03..4da641953 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -628,6 +628,17 @@ gboolean rspamd_config_set_action_score (struct rspamd_config *cfg,
gboolean rspamd_config_is_module_enabled (struct rspamd_config *cfg,
const gchar *module_name);
+/*
+ * Get action from a string
+ */
+gboolean rspamd_action_from_str (const gchar *data, gint *result);
+
+/*
+ * Return textual representation of action enumeration
+ */
+const gchar * rspamd_action_to_str (enum rspamd_metric_action action);
+const gchar * rspamd_action_to_str_alt (enum rspamd_metric_action action);
+
/**
* Parse radix tree or radix map from ucl object
* @param cfg configuration object