From 2a5e10cd472278a35dc4a7980a8130bcb9ca6430 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 6 Aug 2015 15:30:10 +0100 Subject: Hide workers and modules definitions. --- src/libserver/worker_util.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/libserver/worker_util.h') diff --git a/src/libserver/worker_util.h b/src/libserver/worker_util.h index f8cbccfa5..04109b9b0 100644 --- a/src/libserver/worker_util.h +++ b/src/libserver/worker_util.h @@ -26,13 +26,7 @@ #include "config.h" #include "util.h" #include "http.h" - -/** - * Return worker's control structure by its type - * @param type - * @return worker's control structure or NULL - */ -worker_t * rspamd_get_worker_by_type (GQuark type); +#include "main.h" #ifndef HAVE_SA_SIGINFO typedef void (*rspamd_sig_handler_t) (gint); @@ -98,4 +92,13 @@ void rspamd_controller_send_string (struct rspamd_http_connection_entry *entry, void rspamd_controller_send_ucl (struct rspamd_http_connection_entry *entry, ucl_object_t *obj); +/** + * Return worker's control structure by its type + * @param type + * @return worker's control structure or NULL + */ +worker_t * rspamd_get_worker_by_type (struct rspamd_config *cfg, GQuark type); + +void rspamd_worker_stop_accept (struct rspamd_worker *worker); + #endif /* WORKER_UTIL_H_ */ -- cgit v1.2.3