aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.h b/src/main.h
index a482cb1b1..b934ae31e 100644
--- a/src/main.h
+++ b/src/main.h
@@ -41,8 +41,6 @@
#define CR '\r'
#define LF '\n'
-
-
/**
* Worker process structure
*/
@@ -91,9 +89,11 @@ struct rspamd_main {
/* Pid file structure */
struct pidfh *pfh; /**< struct pidfh for pidfile */
enum process_type type; /**< process type */
- guint ev_initialized; /**< is event system is initialized */
+ guint ev_initialized; /**< is event system is initialized */
struct rspamd_stat *stat; /**< pointer to statistics */
+ gpointer workers_ctx[TYPE_MAX]; /** Array of workers' contexts */
+
memory_pool_t *server_pool; /**< server's memory pool */
statfile_pool_t *statfile_pool; /**< shared statfiles pool */
GHashTable *workers; /**< workers pool indexed by pid */
@@ -245,8 +245,12 @@ struct c_module {
struct module_ctx *ctx; /**< pointer to context */
};
+/* Workers' initialization and start functions */
+gpointer init_worker (void);
void start_worker (struct rspamd_worker *worker);
+gpointer init_controller (void);
void start_controller (struct rspamd_worker *worker);
+gpointer init_greylist (void);
void start_greylist_storage (struct rspamd_worker *worker);
/**