diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-03-30 20:31:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-03-30 20:31:21 +0100 |
commit | 9e8950b9ec82af16706eba796ae315b61d6464c6 (patch) | |
tree | a0b1119866ec266ea8eff7433b5924bf1420e7cb /src/libserver/cfg_file.h | |
parent | 412cc05ff14dffee529fdc5b8c19814a9ded1df4 (diff) | |
download | rspamd-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.h | 8 |
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 */ |