diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 12:45:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 12:45:38 +0100 |
commit | 7e66b3bd08dbca9356013a3777f786076d1dacea (patch) | |
tree | da322627187e37ce4de4b0ab30de1578567319f7 /src/main.h | |
parent | 29d9635d76fdaf0feec3aca1b66778c7573da790 (diff) | |
download | rspamd-7e66b3bd08dbca9356013a3777f786076d1dacea.tar.gz rspamd-7e66b3bd08dbca9356013a3777f786076d1dacea.zip |
Rework worker utilities.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/main.h b/src/main.h index 57a7907e5..d93c00e09 100644 --- a/src/main.h +++ b/src/main.h @@ -22,6 +22,7 @@ #include "roll_history.h" #include "http.h" #include "task.h" +#include "worker_util.h" /* Default values */ #define FIXED_CONFIG_FILE RSPAMD_CONFDIR "/rspamd.conf" @@ -195,37 +196,6 @@ void register_custom_controller_command (const gchar *name, controller_func_t ha */ extern struct rspamd_main *rspamd_main; -/* Worker task manipulations */ - -/** - * Set counter for a symbol - */ -double set_counter (const gchar *name, guint32 value); - -#ifndef HAVE_SA_SIGINFO -typedef void (*rspamd_sig_handler_t) (gint); -#else -typedef void (*rspamd_sig_handler_t) (gint, siginfo_t *, void *); -#endif - -/** - * Prepare worker's startup - * @param worker worker structure - * @param name name of the worker - * @param sig_handler handler of main signals - * @param accept_handler handler of accept event for listen sockets - * @return event base suitable for a worker - */ -struct event_base * -prepare_worker (struct rspamd_worker *worker, const char *name, - void (*accept_handler)(int, short, void *)); - -/** - * Stop accepting new connections for a worker - * @param worker - */ -void worker_stop_accept (struct rspamd_worker *worker); - #endif /* |