diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-18 17:32:55 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-18 17:32:55 +0400 |
commit | 30bad7395e5f45360b5716aeb5e7338f204cd36c (patch) | |
tree | 0ef8a9c95bd1f10aa96459f078b8f1df0016d966 /src/main.h | |
parent | c4cf1b8310acec912203865f64ccd25751f4af7a (diff) | |
download | rspamd-30bad7395e5f45360b5716aeb5e7338f204cd36c.tar.gz rspamd-30bad7395e5f45360b5716aeb5e7338f204cd36c.zip |
* Introduce new system of contexts initialization. It would be used for other things in rspamd as well in future.
Ignore unknown headers in case of http.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h index 6ac24e7ad..812877d15 100644 --- a/src/main.h +++ b/src/main.h @@ -92,8 +92,6 @@ struct rspamd_main { 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 */ @@ -280,6 +278,11 @@ void start_greylist_storage (struct rspamd_worker *worker); void register_custom_controller_command (const gchar *name, controller_func_t handler, gboolean privilleged, gboolean require_message); /** + * Initialize context for worker of specified type + */ +gpointer init_workers_ctx (enum process_type type); + +/** * If set, reopen log file on next write */ extern struct rspamd_main *rspamd_main; |