diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-22 17:20:24 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-22 17:20:24 +0300 |
commit | ee9632d269fa365a66cff0da13acb28fd8908bef (patch) | |
tree | 5d49786dcfa4e1c1af7c4bb99e11ad85fad934b1 /src/symbols_cache.h | |
parent | 02fdad311299333c513d9e63a1371688c289a593 (diff) | |
download | rspamd-ee9632d269fa365a66cff0da13acb28fd8908bef.tar.gz rspamd-ee9632d269fa365a66cff0da13acb28fd8908bef.zip |
Do not re-create symbols cache while doing dump of cache.
Diffstat (limited to 'src/symbols_cache.h')
-rw-r--r-- | src/symbols_cache.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/symbols_cache.h b/src/symbols_cache.h index 6d41f7d7f..d84b2492b 100644 --- a/src/symbols_cache.h +++ b/src/symbols_cache.h @@ -73,7 +73,8 @@ struct symbols_cache { /** * Load symbols cache from file, must be called _after_ init_symbols_cache */ -gboolean init_symbols_cache (memory_pool_t *pool, struct symbols_cache *cache, struct config_file *cfg, const gchar *filename); +gboolean init_symbols_cache (memory_pool_t *pool, struct symbols_cache *cache, struct config_file *cfg, + const gchar *filename, gboolean ignore_checksum); /** * Register function for symbols parsing @@ -81,7 +82,8 @@ gboolean init_symbols_cache (memory_pool_t *pool, struct symbols_cache *cache, s * @param func pointer to handler * @param user_data pointer to user_data */ -void register_symbol (struct symbols_cache **cache, const gchar *name, double weight, symbol_func_t func, gpointer user_data); +void register_symbol (struct symbols_cache **cache, const gchar *name, double weight, + symbol_func_t func, gpointer user_data); /** @@ -96,7 +98,8 @@ void register_virtual_symbol (struct symbols_cache **cache, const gchar *name, d * @param func pointer to handler * @param user_data pointer to user_data */ -void register_callback_symbol (struct symbols_cache **cache, const gchar *name, double weight, symbol_func_t func, gpointer user_data); +void register_callback_symbol (struct symbols_cache **cache, const gchar *name, double weight, + symbol_func_t func, gpointer user_data); /** * Register function for symbols parsing with strict priority @@ -104,7 +107,8 @@ void register_callback_symbol (struct symbols_cache **cache, const gchar *name, * @param func pointer to handler * @param user_data pointer to user_data */ -void register_callback_symbol_priority (struct symbols_cache **cache, const gchar *name, double weight, gint priority, symbol_func_t func, gpointer user_data); +void register_callback_symbol_priority (struct symbols_cache **cache, const gchar *name, double weight, + gint priority, symbol_func_t func, gpointer user_data); /** * Register function for dynamic symbols parsing |