aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_control.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-21 16:18:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-21 16:18:27 +0100
commit87232e48b7eae8a4cc0ba429d8eecbf6d99e2d3a (patch)
tree150ad61a6da70fd0dce4ec7946c2a773d69073b2 /src/libserver/rspamd_control.h
parent39be9db453245cf561148e3f0e17c58dec2ce747 (diff)
downloadrspamd-87232e48b7eae8a4cc0ba429d8eecbf6d99e2d3a.tar.gz
rspamd-87232e48b7eae8a4cc0ba429d8eecbf6d99e2d3a.zip
[Project] Add child change control command type
Diffstat (limited to 'src/libserver/rspamd_control.h')
-rw-r--r--src/libserver/rspamd_control.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/libserver/rspamd_control.h b/src/libserver/rspamd_control.h
index b04fca09d..6c092ca74 100644
--- a/src/libserver/rspamd_control.h
+++ b/src/libserver/rspamd_control.h
@@ -37,6 +37,7 @@ enum rspamd_control_type {
RSPAMD_CONTROL_FUZZY_STAT,
RSPAMD_CONTROL_FUZZY_SYNC,
RSPAMD_CONTROL_MONITORED_CHANGE,
+ RSPAMD_CONTROL_CHILD_CHANGE,
RSPAMD_CONTROL_MAX
};
@@ -86,6 +87,15 @@ struct rspamd_control_command {
struct {
guint unused;
} fuzzy_sync;
+ struct {
+ enum {
+ rspamd_child_offline,
+ rspamd_child_online,
+ rspamd_child_terminated,
+ } what;
+ pid_t pid;
+ guint additional;
+ } child_change;
} cmd;
};
@@ -246,10 +256,9 @@ void rspamd_srv_send_command (struct rspamd_worker *worker,
* @param cmd
* @param except_pid
*/
-void
-rspamd_control_broadcast_srv_cmd (struct rspamd_main *rspamd_main,
- struct rspamd_control_command *cmd,
- pid_t except_pid);
+void rspamd_control_broadcast_srv_cmd (struct rspamd_main *rspamd_main,
+ struct rspamd_control_command *cmd,
+ pid_t except_pid);
/**
* Returns command from a specified string (case insensitive)