From 1f58c5fa9805a404c9a942f110589fce464825df Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 1 Jan 2018 18:58:01 +0000 Subject: [Project] Initialize language detector --- src/libserver/task.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libserver/task.h') diff --git a/src/libserver/task.h b/src/libserver/task.h index 8ab9514ce..3055c5654 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -122,6 +122,7 @@ enum rspamd_task_stage { #define RSPAMD_TASK_IS_PROFILING(task) (((task)->flags & RSPAMD_TASK_FLAG_PROFILE)) struct rspamd_email_address; +struct rspamd_lang_detector; enum rspamd_newlines_type; /** @@ -205,6 +206,7 @@ struct rspamd_task { ucl_object_t *settings; /**< Settings applied to task */ const gchar *classifier; /**< Classifier to learn (if needed) */ + struct rspamd_lang_detector *lang_det; /**< Languages detector */ guchar digest[16]; }; @@ -213,7 +215,8 @@ struct rspamd_task { */ struct rspamd_task *rspamd_task_new (struct rspamd_worker *worker, struct rspamd_config *cfg, - rspamd_mempool_t *pool); + rspamd_mempool_t *pool, + struct rspamd_lang_detector *lang_det); /** * Destroy task object and remove its IO dispatcher if it exists */ -- cgit v1.2.3