aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/worker_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-26 16:04:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-26 16:04:58 +0000
commit714ebee786d239c68aff8356b199eca9d14b8794 (patch)
treeb831f711c9c40e6675770ed45a8e7c5fa15d06d3 /src/libserver/worker_util.h
parent4d386d0c689ad4607c67dcd634e53aadea940613 (diff)
downloadrspamd-714ebee786d239c68aff8356b199eca9d14b8794.tar.gz
rspamd-714ebee786d239c68aff8356b199eca9d14b8794.zip
[Minor] Add common methods to find a primary controller
Diffstat (limited to 'src/libserver/worker_util.h')
-rw-r--r--src/libserver/worker_util.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libserver/worker_util.h b/src/libserver/worker_util.h
index 179907ee4..2e3fd4458 100644
--- a/src/libserver/worker_util.h
+++ b/src/libserver/worker_util.h
@@ -143,13 +143,20 @@ void rspamd_worker_unblock_signals (void);
void rspamd_hard_terminate (struct rspamd_main *rspamd_main) G_GNUC_NORETURN;
/**
- * Returns TRUE if a specific worker is normal worker
+ * Returns TRUE if a specific worker is a scanner worker
* @param w
* @return
*/
gboolean rspamd_worker_is_scanner (struct rspamd_worker *w);
/**
+ * Returns TRUE if a specific worker is a primary controller
+ * @param w
+ * @return
+ */
+gboolean rspamd_worker_is_primary_controller (struct rspamd_worker *w);
+
+/**
* Creates new session cache
* @param w
* @return