config: enable user to specify path to configuration file

This commit is contained in:
Daniel Eklöf 2019-12-17 19:08:43 +01:00
parent d15631e3de
commit caa76bcdea
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 65 additions and 35 deletions

View file

@ -38,5 +38,5 @@ struct config {
char *server_socket_path;
};
bool config_load(struct config *conf);
bool config_load(struct config *conf, const char *path);
void config_free(struct config conf);