diff options
Diffstat (limited to 'core/defconf.c')
| -rw-r--r-- | core/defconf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/defconf.c b/core/defconf.c index 4444179..be55708 100644 --- a/core/defconf.c +++ b/core/defconf.c @@ -8,6 +8,7 @@ #include <stdlib.h> #include <string.h> #include "defconf/state.h" +#include "defconf/parser.h" /* Globals */ static char *config_path = NULL; @@ -24,11 +25,18 @@ static int defconf_run(void) { struct defconf_state state; + int error; if (defconf_state_init(config_path, &state) < 0) { return -1; } + /* Begin parsing the config */ + if ((error = parse_begin(&state)) < 0) { + defconf_state_destroy(&state); + return error; + } + defconf_state_destroy(&state); return 0; } |
