aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/worker_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-26 22:21:51 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-26 22:21:51 +0000
commiteb6e28e07f9108ff9a5f5711cb8f43662a8fa0fe (patch)
tree13f053449aae4b17919829344d300d5fbaa15916 /src/libserver/worker_util.h
parentd0fd4b42cbb067bcacf35b580721889aced9571a (diff)
downloadrspamd-eb6e28e07f9108ff9a5f5711cb8f43662a8fa0fe.tar.gz
rspamd-eb6e28e07f9108ff9a5f5711cb8f43662a8fa0fe.zip
Move controller session definition.
Diffstat (limited to 'src/libserver/worker_util.h')
-rw-r--r--src/libserver/worker_util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libserver/worker_util.h b/src/libserver/worker_util.h
index 741180922..3242d1669 100644
--- a/src/libserver/worker_util.h
+++ b/src/libserver/worker_util.h
@@ -77,6 +77,18 @@ struct rspamd_custom_controller_command {
rspamd_controller_func_t handler;
};
+struct rspamd_controller_worker_ctx;
+
+struct rspamd_controller_session {
+ struct rspamd_controller_worker_ctx *ctx;
+ struct rspamd_worker *wrk;
+ rspamd_mempool_t *pool;
+ struct rspamd_task *task;
+ struct rspamd_classifier_config *cl;
+ rspamd_inet_addr_t *from_addr;
+ gboolean is_spam;
+};
+
/**
* Send error using HTTP and JSON output
* @param entry router entry