diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-22 21:32:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-22 21:32:22 +0000 |
commit | ef9d816e983d6559e6c711a2a5e2e76a2ddbd226 (patch) | |
tree | dd88474496b8df6d950d51ac516693ed9f39b5fe /src/libserver/cfg_file.h | |
parent | 32d054c31888e6eb9f4e449e4c237142d4042b7f (diff) | |
download | rspamd-ef9d816e983d6559e6c711a2a5e2e76a2ddbd226.tar.gz rspamd-ef9d816e983d6559e6c711a2a5e2e76a2ddbd226.zip |
Allow configurable tokenizers.
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 7 |
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 */ |