diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-05-30 14:38:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-05-30 14:38:24 +0100 |
commit | 7b3682ce3c78d26dd75782f931611bd09bcc76a5 (patch) | |
tree | 03bf5e112472081877f31d50de26613df8d95207 /src/cfg_utils.c | |
parent | edb41f2b5d018399dacf229555e659720f7a97a8 (diff) | |
download | rspamd-7b3682ce3c78d26dd75782f931611bd09bcc76a5.tar.gz rspamd-7b3682ce3c78d26dd75782f931611bd09bcc76a5.zip |
Add support for meta options for modules.
This is preliminary patch that enables meta options for modules
which would simplify complex options passing.
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index a0191b103..4acfead35 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -216,6 +216,7 @@ init_defaults (struct config_file *cfg) cfg->max_statfile_size = DEFAULT_STATFILE_SIZE; cfg->modules_opts = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); + cfg->modules_metas = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); cfg->variables = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); cfg->metrics = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); cfg->c_modules = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); @@ -242,6 +243,7 @@ free_config (struct config_file *cfg) remove_all_maps (cfg); g_hash_table_remove_all (cfg->modules_opts); g_hash_table_unref (cfg->modules_opts); + g_hash_table_unref (cfg->modules_metas); g_hash_table_remove_all (cfg->variables); g_hash_table_unref (cfg->variables); g_hash_table_remove_all (cfg->metrics); |