aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-03-30 20:31:21 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-03-30 20:31:21 +0100
commit9e8950b9ec82af16706eba796ae315b61d6464c6 (patch)
treea0b1119866ec266ea8eff7433b5924bf1420e7cb /src/libserver/cfg_file.h
parent412cc05ff14dffee529fdc5b8c19814a9ded1df4 (diff)
downloadrspamd-9e8950b9ec82af16706eba796ae315b61d6464c6.tar.gz
rspamd-9e8950b9ec82af16706eba796ae315b61d6464c6.zip
[Rework] Isolate disable/enable logic for the configuration ucl objects
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 61999d547..6f88c6b63 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -718,6 +718,14 @@ gboolean rspamd_config_maybe_disable_action (struct rspamd_config *cfg,
gboolean rspamd_config_is_module_enabled (struct rspamd_config *cfg,
const gchar *module_name);
+/**
+ * Verifies enabled/disabled combination in the specified object
+ * @param obj
+ * @return TRUE if there is no explicit disable in the object found
+ */
+gboolean rspamd_config_is_enabled_from_ucl (struct rspamd_config *cfg,
+ const ucl_object_t *obj);
+
/*
* Get action from a string
*/