diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-13 15:28:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-13 15:28:07 +0100 |
commit | 6f70b5767167f3414ee7c84346e84f32ebfeaf38 (patch) | |
tree | 1448f57c9730837667f5da5f037832b970e17993 /src/libserver/cfg_file.h | |
parent | 7a1cfea11cf27eea852be68b2373b233e650f689 (diff) | |
download | rspamd-6f70b5767167f3414ee7c84346e84f32ebfeaf38.tar.gz rspamd-6f70b5767167f3414ee7c84346e84f32ebfeaf38.zip |
More fixes for the new symbols structure.
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 431f82ab1..49d48033e 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -17,6 +17,9 @@ #define DEFAULT_BIND_PORT 11333 #define DEFAULT_CONTROL_PORT 11334 +/* Default metric name */ +#define DEFAULT_METRIC "default" + struct expression; struct tokenizer; struct rspamd_stat_classifier; @@ -360,6 +363,13 @@ struct rspamd_worker_conf * rspamd_config_new_worker (struct rspamd_config *cfg, */ struct metric * rspamd_config_new_metric (struct rspamd_config *cfg, struct metric *c, const gchar *name); + +/* + * Return new symbols group definition + */ +struct rspamd_symbols_group * rspamd_config_new_group ( + struct rspamd_config *cfg, struct metric *metric, + const gchar *name); /* * Return a new statfile structure, setting default and non-conflicting attributes */ |