aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_control.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-08 18:17:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-08 18:17:32 +0000
commiteccc8fb354cc26ae171d43d6a25c5ffcdb861263 (patch)
treeadba1bfca99280ee391819e2bd153e78fbdf827b /src/libserver/rspamd_control.h
parent37b7b0c2812cca78bad63e8f15842c7cc8d891f1 (diff)
downloadrspamd-eccc8fb354cc26ae171d43d6a25c5ffcdb861263.tar.gz
rspamd-eccc8fb354cc26ae171d43d6a25c5ffcdb861263.zip
Add event for loading of hyperscan files
Diffstat (limited to 'src/libserver/rspamd_control.h')
-rw-r--r--src/libserver/rspamd_control.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.h b/src/libserver/rspamd_control.h
index 74597a1ac..4ae836925 100644
--- a/src/libserver/rspamd_control.h
+++ b/src/libserver/rspamd_control.h
@@ -36,11 +36,13 @@ enum rspamd_control_type {
RSPAMD_CONTROL_RELOAD,
RSPAMD_CONTROL_RERESOLVE,
RSPAMD_CONTROL_RECOMPILE,
+ RSPAMD_CONTROL_HYPERSCAN_LOADED,
RSPAMD_CONTROL_MAX
};
enum rspamd_srv_type {
RSPAMD_SRV_SOCKETPAIR = 0,
+ RSPAMD_SRV_HYPERSCAN_LOADED,
};
struct rspamd_control_command {
@@ -58,6 +60,9 @@ struct rspamd_control_command {
struct {
guint unused;
} recompile;
+ struct {
+ gpointer cache_dir;
+ } hs_loaded;
} cmd;
};
@@ -80,6 +85,9 @@ struct rspamd_control_reply {
struct {
guint status;
} recompile;
+ struct {
+ guint status;
+ } hs_loaded;
} reply;
};
@@ -93,6 +101,9 @@ struct rspamd_srv_command {
gchar pair_id[PAIR_ID_LEN];
guint pair_num;
} spair;
+ struct {
+ gpointer cache_dir;
+ } hs_loaded;
} cmd;
};
@@ -103,6 +114,9 @@ struct rspamd_srv_reply {
struct {
gint code;
} spair;
+ struct {
+ gint unused;
+ } hs_loaded;
} reply;
};