From 6a79c86fbd07ecfb89f6ab49b2998b576ec6fab4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 24 Oct 2016 08:01:13 +0100 Subject: [Feature] Add method to enable/disable symbols in config --- src/libserver/symbols_cache.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/libserver/symbols_cache.h') 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,12 +197,20 @@ 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 -- cgit v1.2.3