diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-06 17:26:17 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-06 17:26:17 +0400 |
commit | 54c2f784b7848b15f0a12329dd282e24fad87c04 (patch) | |
tree | 566c99d17ad85d9c11cfa2c9c8c94ec04fe66376 /src/cfg_file.h | |
parent | 393a7c39ecc9224faa7c11afc32c8e74f54ea3c5 (diff) | |
download | rspamd-54c2f784b7848b15f0a12329dd282e24fad87c04.tar.gz rspamd-54c2f784b7848b15f0a12329dd282e24fad87c04.zip |
* Add symbols command for webui.
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r-- | src/cfg_file.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h index c6c8487ce..538167ea8 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -139,6 +139,23 @@ struct module_opt { }; /** + * Symbol definition + */ +struct symbol_def { + gchar *name; + gchar *description; + gdouble weight; +}; + +/** + * Symbols group + */ +struct symbols_group { + gchar *name; + GList *symbols; +}; + +/** * Statfile section definition */ struct statfile_section { @@ -308,6 +325,7 @@ struct config_file { GHashTable* modules_opts; /**< hash for module 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 */ GList* metrics_list; /**< linked list of metrics */ GHashTable* metrics_symbols; /**< hash table of metrics indexed by symbol */ GHashTable* c_modules; /**< hash of c modules indexed by module name */ |