#include "squid.h"
-/* forward decls */
-
-class CacheManager;
-
/*
* A configuration file Parser. Instances of this class track
* parsing state and perform tokenisation. Syntax is currently
static char * strtokFile();
};
-extern int parseConfigFile(const char *file_name, CacheManager & manager);
+extern int parseConfigFile(const char *file_name);
#endif /* SQUID_CONFIGPARSER_H */
}
int
-parseConfigFile(const char *file_name, CacheManager & manager)
+parseConfigFile(const char *file_name)
{
int err_count = 0;
+ CacheManager *manager=CacheManager::GetInstance();
configFreeMemory();
}
if (opt_send_signal == -1) {
- manager.registerAction("config",
+ manager->registerAction("config",
"Current Squid Configuration",
dump_config,
1, 1);
refererCloseLog();
errorClean();
enter_suid(); /* root to read config file */
- parseConfigFile(ConfigFile, *manager);
+ parseConfigFile(ConfigFile);
setUmask(Config.umask);
Mem::Report();
setEffectiveUser();
/* we may want the parsing process to set this up in the future */
Store::Root(new StoreController);
- parse_err = parseConfigFile(ConfigFile, *manager);
+ parse_err = parseConfigFile(ConfigFile);
Mem::Report();