From 98f063228f4ca570ec8d40bc1a07bc785fe94e14 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 15 Jan 2018 21:10:33 +0000 Subject: [Minor] Improve language detection debug logging --- src/libmime/lang_detection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libmime/lang_detection.h') diff --git a/src/libmime/lang_detection.h b/src/libmime/lang_detection.h index 048e425f6..0058801b8 100644 --- a/src/libmime/lang_detection.h +++ b/src/libmime/lang_detection.h @@ -23,6 +23,7 @@ struct rspamd_lang_detector; struct rspamd_language_elt; +struct rspamd_task; struct rspamd_lang_detector_res { gdouble prob; @@ -54,7 +55,8 @@ void rspamd_language_detector_to_ucs (struct rspamd_lang_detector *d, * @param words_len * @return array of struct rspamd_lang_detector_res sorted by freq descending */ -GPtrArray * rspamd_language_detector_detect (struct rspamd_lang_detector *d, +GPtrArray * rspamd_language_detector_detect (struct rspamd_task *task, + struct rspamd_lang_detector *d, GArray *ucs_tokens, gsize words_len); #endif -- cgit v1.2.3