aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/worker_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 15:30:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 15:30:10 +0100
commit2a5e10cd472278a35dc4a7980a8130bcb9ca6430 (patch)
treefb960ce0e37eaca6788f27f620547231fc0a5a22 /src/libserver/worker_util.h
parent2c33c006c2b7f8cea8bbbb157c39268705211e8a (diff)
downloadrspamd-2a5e10cd472278a35dc4a7980a8130bcb9ca6430.tar.gz
rspamd-2a5e10cd472278a35dc4a7980a8130bcb9ca6430.zip
Hide workers and modules definitions.
Diffstat (limited to 'src/libserver/worker_util.h')
-rw-r--r--src/libserver/worker_util.h17
1 files changed, 10 insertions, 7 deletions
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_ */