diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-06 08:56:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-06 08:56:02 +0100 |
commit | fd20fa9f63e72df66b2b702cde982f729f704480 (patch) | |
tree | bb7dc05025ff92cf09911bea0280ae761b1c8097 /src/libserver/rspamd_control.h | |
parent | 07b8d8cb2d14a357f196afcb42aa8469b43a6167 (diff) | |
download | rspamd-fd20fa9f63e72df66b2b702cde982f729f704480.tar.gz rspamd-fd20fa9f63e72df66b2b702cde982f729f704480.zip |
[Rework] Further steps towards one process monitoring
Diffstat (limited to 'src/libserver/rspamd_control.h')
-rw-r--r-- | src/libserver/rspamd_control.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.h b/src/libserver/rspamd_control.h index c7a60ef58..fd1395d96 100644 --- a/src/libserver/rspamd_control.h +++ b/src/libserver/rspamd_control.h @@ -32,12 +32,14 @@ enum rspamd_control_type { RSPAMD_CONTROL_LOG_PIPE, RSPAMD_CONTROL_FUZZY_STAT, RSPAMD_CONTROL_FUZZY_SYNC, + RSPAMD_CONTROL_MONITORED_CHANGE, RSPAMD_CONTROL_MAX }; enum rspamd_srv_type { RSPAMD_SRV_SOCKETPAIR = 0, RSPAMD_SRV_HYPERSCAN_LOADED, + RSPAMD_SRV_MONITORED_CHANGE, RSPAMD_SRV_LOG_PIPE, }; @@ -65,6 +67,10 @@ struct rspamd_control_command { gboolean forced; } hs_loaded; struct { + gchar tag[32]; + gboolean alive; + } monitored_change; + struct { enum rspamd_log_pipe_type type; } log_pipe; struct { @@ -100,6 +106,9 @@ struct rspamd_control_reply { } hs_loaded; struct { guint status; + } monitored_change; + struct { + guint status; } log_pipe; struct { guint status; @@ -127,6 +136,10 @@ struct rspamd_srv_command { gboolean forced; } hs_loaded; struct { + gchar tag[32]; + gboolean alive; + } monitored_change; + struct { enum rspamd_log_pipe_type type; } log_pipe; } cmd; @@ -143,6 +156,9 @@ struct rspamd_srv_reply { gint forced; } hs_loaded; struct { + gint status; + }; + struct { enum rspamd_log_pipe_type type; } log_pipe; } reply; |