aboutsummaryrefslogtreecommitdiffstats
path: root/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-09-02 19:42:58 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-09-02 19:42:58 +0400
commit2809ad4747b7e3a3795aec4e433d7754c7efc365 (patch)
tree924e32c2c66062b6b9b7e3525ada783b092aaea8 /cfg_file.h
parentbacc29586271996154884ff8c531520385318a84 (diff)
downloadrspamd-2809ad4747b7e3a3795aec4e433d7754c7efc365.tar.gz
rspamd-2809ad4747b7e3a3795aec4e433d7754c7efc365.zip
* Add ability to pass options to rspamd modules via flex start conditions
Diffstat (limited to 'cfg_file.h')
-rw-r--r--cfg_file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cfg_file.h b/cfg_file.h
index 62856b489..401593584 100644
--- a/cfg_file.h
+++ b/cfg_file.h
@@ -84,6 +84,12 @@ struct filter_chain {
LIST_ENTRY (filter_chain) next;
};
+struct module_opt {
+ char *param;
+ char *value;
+ LIST_ENTRY (module_opt) next;
+};
+
struct config_file {
char *cfg_name;
char *pid_file;
@@ -108,6 +114,7 @@ struct config_file {
LIST_HEAD (perlq, filter_chain) filters;
LIST_HEAD (modulesq, perl_module) perl_modules;
LIST_HEAD (cmodulesq, c_module) c_modules;
+ GHashTable* modules_opts;
};
int add_memcached_server (struct config_file *cf, char *str);