diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-09-19 20:29:58 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-09-19 20:29:58 +0400 |
commit | 91d183b8f4719ecc6b339cc3e8d9239bf7594e30 (patch) | |
tree | e4a548ed5570d425d87ac0aa684900179eaabe4e /src/view.h | |
parent | 1bdd1f05773d1f16f4fc271e09a691a1750e0ed5 (diff) | |
download | rspamd-91d183b8f4719ecc6b339cc3e8d9239bf7594e30.tar.gz rspamd-91d183b8f4719ecc6b339cc3e8d9239bf7594e30.zip |
Avoid global variables in map logic.
* Add support of simple maps like '/path/to/file' as it seems to be more comfortable than 'file:///...'
Diffstat (limited to 'src/view.h')
-rw-r--r-- | src/view.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view.h b/src/view.h index f62c65198..f36f2e1b4 100644 --- a/src/view.h +++ b/src/view.h @@ -7,7 +7,9 @@ #include "main.h" #include "radix.h" +struct config_file; struct rspamd_view { + struct config_file *cfg; GList *from_re_list; GHashTable *from_hash; @@ -30,7 +32,7 @@ struct rspamd_view { * @param pool pool for view * @return */ -struct rspamd_view* init_view (memory_pool_t *pool); +struct rspamd_view* init_view (struct config_file *cfg, memory_pool_t *pool); /** * Add from option for this view |