aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker_private.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-02 12:31:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-02 12:31:10 +0100
commitffe52ffb1f0f5250292d24e0da4a0f22c0ed488b (patch)
tree0b58b8a81ac36726fdee0221ab9a5c5807a4c9e5 /src/worker_private.h
parentd71409c68eef6eadf741537d145ab022f255203b (diff)
downloadrspamd-ffe52ffb1f0f5250292d24e0da4a0f22c0ed488b.tar.gz
rspamd-ffe52ffb1f0f5250292d24e0da4a0f22c0ed488b.zip
[Rework] Make log pipes worker agnostic, add scanners API
Diffstat (limited to 'src/worker_private.h')
-rw-r--r--src/worker_private.h18
1 files changed, 7 insertions, 11 deletions
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