summaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-05-30 14:38:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-05-30 14:38:24 +0100
commit7b3682ce3c78d26dd75782f931611bd09bcc76a5 (patch)
tree03bf5e112472081877f31d50de26613df8d95207 /src/cfg_file.h
parentedb41f2b5d018399dacf229555e659720f7a97a8 (diff)
downloadrspamd-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_file.h')
-rw-r--r--src/cfg_file.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h
index e87d10316..bb638888d 100644
--- a/src/cfg_file.h
+++ b/src/cfg_file.h
@@ -138,6 +138,11 @@ struct module_opt {
enum lua_var_type lua_type; /**< type of lua variable */
};
+struct module_meta_opt {
+ gchar *name; /**< Name of meta option */
+ GList *options; /**< List of struct module_opt */
+};
+
/**
* Symbol definition
*/
@@ -323,6 +328,7 @@ struct config_file {
GList *workers; /**< linked list of all workers params */
gchar *filters_str; /**< string of filters */
GHashTable* modules_opts; /**< hash for module options indexed by module name */
+ GHashTable* modules_metas; /**< hash for module meta options indexed by module name*/
GHashTable* variables; /**< hash of $variables defined in config, indexed by variable name */
GHashTable* metrics; /**< hash of metrics indexed by metric name */
GList* symbols_groups; /**< groups of symbols */