diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-24 08:01:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-24 08:01:13 +0100 |
commit | 6a79c86fbd07ecfb89f6ab49b2998b576ec6fab4 (patch) | |
tree | f19a0c89e275b74ae6f1c6afc68c97f498df2f8a /src/libserver/symbols_cache.h | |
parent | 124cd1a8573e0d8ea37a9d2239295bc347422579 (diff) | |
download | rspamd-6a79c86fbd07ecfb89f6ab49b2998b576ec6fab4.tar.gz rspamd-6a79c86fbd07ecfb89f6ab49b2998b576ec6fab4.zip |
[Feature] Add method to enable/disable symbols in config
Diffstat (limited to 'src/libserver/symbols_cache.h')
-rw-r--r-- | src/libserver/symbols_cache.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/libserver/symbols_cache.h b/src/libserver/symbols_cache.h index 28695f446..0b5ed3cb1 100644 --- a/src/libserver/symbols_cache.h +++ b/src/libserver/symbols_cache.h @@ -197,13 +197,21 @@ void rspamd_symbols_cache_add_delayed_dependency (struct symbols_cache *cache, const gchar *from, const gchar *to); /** - * Disable some symbols from execution in the cache + * Disable specific symbol in the cache + * @param cache + * @param symbol */ -void rspamd_symbols_cache_disable_symbol (struct rspamd_task *task, - struct symbols_cache *cache, const gchar *symbol); - +void rspamd_symbols_cache_disable_symbol (struct symbols_cache *cache, + const gchar *symbol); /** + * Enable specific symbol in the cache + * @param cache + * @param symbol + */ +void rspamd_symbols_cache_enable_symbol (struct symbols_cache *cache, + const gchar *symbol); +/** * Get abstract callback data for a symbol (or its parent symbol) * @param cache cache object * @param symbol symbol name |