aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-23 15:36:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-23 15:36:31 +0000
commit8ebc43f86166fd121d9634349dfca873cb92278c (patch)
tree33a8c5843dbd3426fb16c0fd591d3f5343c764df /src/libserver/cfg_file.h
parent8a05515078bc8fd3d642778fcae0d005a38ec7b0 (diff)
downloadrspamd-8ebc43f86166fd121d9634349dfca873cb92278c.tar.gz
rspamd-8ebc43f86166fd121d9634349dfca873cb92278c.zip
Rework classifiers configuration and naming.
Now it is possible to register multiple classifiers with the same type.
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 7338b9068..23e785443 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -148,11 +148,12 @@ struct rspamd_classifier_config {
GList *statfiles; /**< statfiles list */
GHashTable *labels; /**< statfiles with labels */
gchar *metric; /**< metric of this classifier */
- struct classifier *classifier; /**< classifier interface */
- struct tokenizer *tokenizer; /**< tokenizer used for classifier */
+ gchar *classifier; /**< classifier interface */
+ gchar *tokenizer; /**< tokenizer used for classifier */
ucl_object_t *opts; /**< other options */
GList *pre_callbacks; /**< list of callbacks that are called before classification */
GList *post_callbacks; /**< list of callbacks that are called after classification */
+ gchar *name; /**< unique name of classifier */
};
struct rspamd_worker_bind_conf {