diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-31 17:19:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-31 17:19:29 +0000 |
commit | 60383ec549918fe5f0a1bbdda09fd74abac56e09 (patch) | |
tree | e21d2da77f9c8f836e641fd3e3fca8077ae2334e /src/worker_private.h | |
parent | a7d2ffaef760aa8d61b34a2426e7215e781ff7d4 (diff) | |
download | rspamd-60383ec549918fe5f0a1bbdda09fd74abac56e09.tar.gz rspamd-60383ec549918fe5f0a1bbdda09fd74abac56e09.zip |
[Project] Enable language detector init in scanner workers
Diffstat (limited to 'src/worker_private.h')
-rw-r--r-- | src/worker_private.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/worker_private.h b/src/worker_private.h index 50a53a624..fe4a6c4b3 100644 --- a/src/worker_private.h +++ b/src/worker_private.h @@ -25,6 +25,8 @@ static const guint64 rspamd_worker_magic = 0xb48abc69d601dc1dULL; +struct rspamd_lang_detector; + struct rspamd_worker_ctx { guint64 magic; /* Events base */ @@ -52,14 +54,16 @@ struct rspamd_worker_ctx { struct rspamd_cryptobox_keypair *key; /* Keys cache */ struct rspamd_keypair_cache *keys_cache; + /* Language detector */ + struct rspamd_lang_detector *lang_det; }; - /* * Init scanning routines */ void rspamd_worker_init_scanner (struct rspamd_worker *worker, struct event_base *ev_base, - struct rspamd_dns_resolver *resolver); + struct rspamd_dns_resolver *resolver, + struct rspamd_lang_detector **plang_det); /* * Called on forced timeout |