From 7b3682ce3c78d26dd75782f931611bd09bcc76a5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 30 May 2013 14:38:24 +0100 Subject: Add support for meta options for modules. This is preliminary patch that enables meta options for modules which would simplify complex options passing. --- src/cfg_file.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cfg_file.h') 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 */ -- cgit v1.2.3