diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-10 18:02:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-10 18:02:33 +0100 |
commit | 952850a4741c0e919879da7e16715d59c40eacca (patch) | |
tree | 5690c0f314cdd6883761163b1e14e3c3967cedd2 /src/libserver/rspamd_control.h | |
parent | 3d97675cf4361d30dd541eff5b6b13c57cf36b80 (diff) | |
download | rspamd-952850a4741c0e919879da7e16715d59c40eacca.tar.gz rspamd-952850a4741c0e919879da7e16715d59c40eacca.zip |
[Project] Add heartbeat events
Diffstat (limited to 'src/libserver/rspamd_control.h')
-rw-r--r-- | src/libserver/rspamd_control.h | 8 |
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; }; |