aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.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/libserver/cfg_file.h
parentd71409c68eef6eadf741537d145ab022f255203b (diff)
downloadrspamd-ffe52ffb1f0f5250292d24e0da4a0f22c0ed488b.tar.gz
rspamd-ffe52ffb1f0f5250292d24e0da4a0f22c0ed488b.zip
[Rework] Make log pipes worker agnostic, add scanners API
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 3963b43d8..2db607075 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -64,6 +64,12 @@ enum rspamd_log_type {
RSPAMD_LOG_FILE
};
+struct rspamd_worker_log_pipe {
+ gint fd;
+ gint type;
+ struct rspamd_worker_log_pipe *prev, *next;
+};
+
/**
* script module list item
*/
@@ -328,6 +334,7 @@ struct rspamd_config {
gboolean log_re_cache; /**< show statistics about regexps */
guint log_error_elts; /**< number of elements in error logbuf */
guint log_error_elt_maxlen; /**< maximum size of error log element */
+ struct rspamd_worker_log_pipe *log_pipes;
gboolean mlock_statfile_pool; /**< use mlock (2) for locking statfiles */
gboolean compat_messages; /**< use old messages in the protocol (array) */