aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-01 18:58:01 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-01 18:58:01 +0000
commit1f58c5fa9805a404c9a942f110589fce464825df (patch)
tree90708b845ad6139d0b9214a63fd255bf75462af6 /src/libserver/task.h
parent60383ec549918fe5f0a1bbdda09fd74abac56e09 (diff)
downloadrspamd-1f58c5fa9805a404c9a942f110589fce464825df.tar.gz
rspamd-1f58c5fa9805a404c9a942f110589fce464825df.zip
[Project] Initialize language detector
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r--src/libserver/task.h5
1 files changed, 4 insertions, 1 deletions
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
*/