--- a/src/server/daemon/configmanager.c Sat Jan 12 14:00:47 2013 +0100 +++ b/src/server/daemon/configmanager.c Sun Jan 13 14:16:45 2013 +0100 @@ -37,10 +37,12 @@ #include "log.h" #include "configmanager.h" -ServerConfiguration *current_config = NULL; -time_t sc_last_modified = 0; +static ServerConfiguration *current_config = NULL; +static time_t sc_last_modified = 0; -UcxMap *config_files; +static UcxMap *config_files; + +static conf_global_vars_s global_vars; void init_configuration_manager() { /* init parser */ @@ -49,6 +51,10 @@ config_files = ucx_map_new(16); } +NSAPI_PUBLIC conf_global_vars_s* conf_getglobals() { + return &global_vars; +} + void cfgmgr_attach_file(ConfigFile *cf) { ucx_map_sstr_put(config_files, cf->file, cf); }