diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-06 15:30:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-06 15:30:10 +0100 |
commit | 2a5e10cd472278a35dc4a7980a8130bcb9ca6430 (patch) | |
tree | fb960ce0e37eaca6788f27f620547231fc0a5a22 /src/main.c | |
parent | 2c33c006c2b7f8cea8bbbb157c39268705211e8a (diff) | |
download | rspamd-2a5e10cd472278a35dc4a7980a8130bcb9ca6430.tar.gz rspamd-2a5e10cd472278a35dc4a7980a8130bcb9ca6430.zip |
Hide workers and modules definitions.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 2bd47cdc3..fb2a362df 100644 --- a/src/main.c +++ b/src/main.c @@ -31,6 +31,7 @@ #include "kvstorage_server.h" #include "libserver/symbols_cache.h" #include "lua/lua_common.h" +#include "libserver/worker_util.h" #include "ottery.h" #include "xxhash.h" #include "utlist.h" @@ -101,6 +102,10 @@ static GHashTable *listen_sockets = NULL; struct rspamd_main *rspamd_main; +/* Defined in modules.c */ +extern module_t *modules[]; +extern worker_t *workers[]; + /* Commandline options */ static GOptionEntry entries[] = { @@ -769,6 +774,8 @@ static gboolean load_rspamd_config (struct rspamd_config *cfg, gboolean init_modules) { cfg->cache = rspamd_symbols_cache_new (); + cfg->compiled_modules = modules; + cfg->compiled_workers = workers; if (!rspamd_config_read (cfg, cfg->cfg_name, NULL, config_logger, rspamd_main, vars)) { |