summaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-13 14:11:31 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-13 14:11:31 +0300
commit89f264624c1c846c995c22a8390b7e79f09ef960 (patch)
treec3a22a993c411510030930e88fff5b86890d5e24 /src/cfg_file.h
parent9a0362647374be48a29887d0571b8a665877be6b (diff)
downloadrspamd-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.h10
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 */
};
/**