aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_control.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/rspamd_control.h')
-rw-r--r--src/libserver/rspamd_control.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.h b/src/libserver/rspamd_control.h
index 08d3946c7..87e5e3186 100644
--- a/src/libserver/rspamd_control.h
+++ b/src/libserver/rspamd_control.h
@@ -46,6 +46,7 @@ enum rspamd_srv_type {
RSPAMD_SRV_MONITORED_CHANGE,
RSPAMD_SRV_LOG_PIPE,
RSPAMD_SRV_ON_FORK,
+ RSPAMD_SRV_HEARTBEAT,
};
enum rspamd_log_pipe_type {
@@ -157,6 +158,10 @@ struct rspamd_srv_command {
child_dead,
} state;
} on_fork;
+ struct {
+ guint status;
+ /* TODO: add more fields */
+ } heartbeat;
} cmd;
};
@@ -179,6 +184,9 @@ struct rspamd_srv_reply {
struct {
gint status;
} on_fork;
+ struct {
+ gint status;
+ } heartbeat;
} reply;
};