From ffe52ffb1f0f5250292d24e0da4a0f22c0ed488b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 2 May 2017 12:31:10 +0100 Subject: [Rework] Make log pipes worker agnostic, add scanners API --- src/worker_private.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/worker_private.h') diff --git a/src/worker_private.h b/src/worker_private.h index 91989cdc0..ac391fc8c 100644 --- a/src/worker_private.h +++ b/src/worker_private.h @@ -23,15 +23,6 @@ #include "libserver/cfg_file.h" #include "libserver/rspamd_control.h" -/* - * Worker's context - */ -struct rspamd_worker_log_pipe { - gint fd; - enum rspamd_log_pipe_type type; - struct rspamd_worker_log_pipe *prev, *next; -}; - static const guint64 rspamd_worker_magic = 0xb48abc69d601dc1dULL; struct rspamd_worker_ctx { @@ -60,8 +51,13 @@ struct rspamd_worker_ctx { struct rspamd_keypair_cache *keys_cache; /* Configuration */ struct rspamd_config *cfg; - /* Log pipe */ - struct rspamd_worker_log_pipe *log_pipes; }; +/* + * Init scanning routines + */ +void rspamd_worker_init_scanner (struct rspamd_worker *worker, + struct event_base *ev_base, + struct rspamd_dns_resolver *resolver); + #endif -- cgit v1.2.3