#include "config.h"
#include "ctdl_module.h"
-struct config config;
+struct config config; // legacy configuration
+HashList *ctdlconfig = NULL; // new configuration
#define STR_NOT_EMPTY(CFG_FIELDNAME) if (IsEmptyStr(config.CFG_FIELDNAME)) \
syslog(LOG_EMERG, "configuration setting "#CFG_FIELDNAME" is empty, but must not - check your config!");
* Called during the initialization of Citadel server.
* It verifies the system's integrity and reads citadel.config into memory.
*/
-void get_config(void) {
+void initialize_config_system(void) {
FILE *cfp;
int rv;
+/*
+ * Called when Citadel server is shutting down.
+ * Clears out the config hash table.
+ */
+void shutdown_config_system(void)
+{
+ DeleteHash(&ctdlconfig);
+}
+
+
+
+
+
+
+
+
+/**********************************************************************/
+
+
+
+
+
+
+
+
+
+
void CtdlGetSysConfigBackend(long msgnum, void *userdata) {
config_msgnum = msgnum;
}