diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-13 14:11:31 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-13 14:11:31 +0300 |
commit | 89f264624c1c846c995c22a8390b7e79f09ef960 (patch) | |
tree | c3a22a993c411510030930e88fff5b86890d5e24 /src/cfg_file.h | |
parent | 9a0362647374be48a29887d0571b8a665877be6b (diff) | |
download | rspamd-89f264624c1c846c995c22a8390b7e79f09ef960.tar.gz rspamd-89f264624c1c846c995c22a8390b7e79f09ef960.zip |
* Add ability to configure sections in statfiles
* Add ability to define variables in modules blocks
* Add symbolic aliases for statfile sections
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r-- | src/cfg_file.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h index 75c3a8c2f..b484d5b0d 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -108,6 +108,15 @@ struct module_opt { }; /** + * Statfile section definition + */ +struct statfile_section { + uint32_t code; /**< section's code */ + uint64_t size; /**< size of section */ + double weight; /**< weight coefficient for section */ +}; + +/** * Statfile config definition */ struct statfile { @@ -117,6 +126,7 @@ struct statfile { char *metric; /**< metric name */ size_t size; /**< size of statfile */ struct tokenizer *tokenizer; /**< tokenizer used for statfile */ + GList *sections; /**< list of sections in statfile */ }; /** |