aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-27 09:42:59 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-27 09:42:59 +0000
commitad664dd4c66be1f803dcdf208bb228478422f102 (patch)
tree7829b9e442219c4cf5ecb9589848b78e74fdc4af /src/libserver/cfg_file.h
parent880300de81564ce2fa4664953fb2a42be9d0bcd0 (diff)
downloadrspamd-ad664dd4c66be1f803dcdf208bb228478422f102.tar.gz
rspamd-ad664dd4c66be1f803dcdf208bb228478422f102.zip
[Feature] Allow to explicitly set events backend
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 3ee832d5a..0aa8df36c 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -439,6 +439,7 @@ struct rspamd_config {
gchar *history_file; /**< file to save rolling history */
gchar *tld_file; /**< file to load effective tld list from */
gchar *hs_cache_dir; /**< directory to save hyperscan databases */
+ gchar *events_backend; /**< string representation of the events backend used */
gdouble dns_timeout; /**< timeout in milliseconds for waiting for dns reply */
guint32 dns_retransmits; /**< maximum retransmits count */
@@ -808,6 +809,9 @@ struct rspamd_action *rspamd_config_get_action (struct rspamd_config *cfg,
struct rspamd_action *rspamd_config_get_action_by_type (struct rspamd_config *cfg,
enum rspamd_action_type type);
+int rspamd_config_ev_backend_get (struct rspamd_config *cfg);
+const gchar * rspamd_config_ev_backend_to_string (int ev_backend, gboolean *effective);
+
#define msg_err_config(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \
cfg->cfg_pool->tag.tagname, cfg->checksum, \
G_STRFUNC, \