From ad664dd4c66be1f803dcdf208bb228478422f102 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 27 Oct 2019 09:42:59 +0000 Subject: [Feature] Allow to explicitly set events backend --- src/libserver/cfg_file.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libserver/cfg_file.h') 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, \ -- cgit v1.2.3