diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-18 16:40:47 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-06-18 16:40:47 +0400 |
commit | e4977d9bfe416a230c4b74ecbeab3681a87db404 (patch) | |
tree | 0c80243ea96bf925a6d6a2d2d52ca431c82fdd02 /src/symbols_cache.h | |
parent | fee46c0b872c559d451a7b4be486febda6ca7388 (diff) | |
download | rspamd-e4977d9bfe416a230c4b74ecbeab3681a87db404.tar.gz rspamd-e4977d9bfe416a230c4b74ecbeab3681a87db404.zip |
* Get weights of symbol from default metric for symbols cache
* Fix setting task->from/task->rctp in smtp client
Diffstat (limited to 'src/symbols_cache.h')
-rw-r--r-- | src/symbols_cache.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/symbols_cache.h b/src/symbols_cache.h index 9f67ca486..81e6e3bc8 100644 --- a/src/symbols_cache.h +++ b/src/symbols_cache.h @@ -7,6 +7,7 @@ #define MAX_SYMBOL 128 struct worker_task; +struct config_file; typedef void (*symbol_func_t)(struct worker_task *task, gpointer user_data); @@ -59,12 +60,13 @@ struct symbols_cache { guint uses; gpointer map; memory_pool_rwlock_t *lock; + struct config_file *cfg; }; /** * Load symbols cache from file, must be called _after_ init_symbols_cache */ -gboolean init_symbols_cache (memory_pool_t *pool, struct symbols_cache *cache, const char *filename); +gboolean init_symbols_cache (memory_pool_t *pool, struct symbols_cache *cache, struct config_file *cfg, const char *filename); /** * Register function for symbols parsing |