diff options
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 */ |