aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-22 21:32:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-22 21:32:22 +0000
commitef9d816e983d6559e6c711a2a5e2e76a2ddbd226 (patch)
treedd88474496b8df6d950d51ac516693ed9f39b5fe /src/libserver/cfg_file.h
parent32d054c31888e6eb9f4e449e4c237142d4042b7f (diff)
downloadrspamd-ef9d816e983d6559e6c711a2a5e2e76a2ddbd226.tar.gz
rspamd-ef9d816e983d6559e6c711a2a5e2e76a2ddbd226.zip
Allow configurable tokenizers.
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index a0eb149df..3b6191306 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -141,6 +141,11 @@ struct rspamd_statfile_config {
gpointer data; /**< opaque data */
};
+struct rspamd_tokenizer_config {
+ const ucl_object_t *opts; /**< other options */
+ const gchar *name; /**< name of tokenizer */
+};
+
/**
* Classifier config definition
*/
@@ -149,7 +154,7 @@ struct rspamd_classifier_config {
GHashTable *labels; /**< statfiles with labels */
gchar *metric; /**< metric of this classifier */
gchar *classifier; /**< classifier interface */
- gchar *tokenizer; /**< tokenizer used for classifier */
+ struct rspamd_tokenizer_config *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 */