diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-14 14:15:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-14 14:15:39 +0100 |
commit | 72d0de26db18763be29faca6c37212887fbf2058 (patch) | |
tree | 54dc07b462cbab1fe3d5da9c9fa2c4915db37c06 /src/libserver/rspamd_symcache.h | |
parent | 4d32fb1b37d2ff46b4c6e1213a5bc163e3f2e96c (diff) | |
download | rspamd-72d0de26db18763be29faca6c37212887fbf2058.tar.gz rspamd-72d0de26db18763be29faca6c37212887fbf2058.zip |
[Project] Implement logic to deal with settings id in the cache
Diffstat (limited to 'src/libserver/rspamd_symcache.h')
-rw-r--r-- | src/libserver/rspamd_symcache.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libserver/rspamd_symcache.h b/src/libserver/rspamd_symcache.h index 3be2ab2ec..a440a542b 100644 --- a/src/libserver/rspamd_symcache.h +++ b/src/libserver/rspamd_symcache.h @@ -18,6 +18,7 @@ #include "config.h" #include "ucl.h" +#include "cfg_file.h" #include <lua.h> #include <event.h> @@ -26,6 +27,7 @@ struct rspamd_config; struct rspamd_symcache; struct rspamd_worker; struct rspamd_symcache_item; +struct rspamd_config_settings_elt; typedef void (*symbol_func_t)(struct rspamd_task *task, struct rspamd_symcache_item *item, @@ -468,4 +470,14 @@ const guint32* rspamd_symcache_get_forbidden_settings_ids (struct rspamd_symcach const gchar *symbol, guint *nids); + +/** + * Processes settings_elt in cache and converts it to a set of + * adjustments for forbidden/allowed settings_ids for each symbol + * @param cache + * @param elt + */ +void rspamd_symcache_process_settings_elt (struct rspamd_symcache *cache, + struct rspamd_config_settings_elt *elt); + #endif |