This repository has been archived on 2021-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
glovechat/src/conf/conf.c

17 lines
323 B
C

#include "conf.h"
int glv_config_load_global(const char* path) {
_config.global = glv_ini_read_file(path);
if(_config.global == NULL) {
printf(GLV_CRIT "Global configuration failed to load.");
return 0;
}
return 1;
}
void glv_config_unload(void) {
glv_ini_destroy(_config.global);
}