46 |
46 |
47 ObjectConfig *conf = malloc(sizeof(ObjectConfig)); |
47 ObjectConfig *conf = malloc(sizeof(ObjectConfig)); |
48 conf->parser.parse = objconf_parse; |
48 conf->parser.parse = objconf_parse; |
49 conf->file = file; |
49 conf->file = file; |
50 conf->conditions = NULL; |
50 conf->conditions = NULL; |
|
51 conf->levels = NULL; |
51 |
52 |
52 int r = cfg_parse_basic_file((ConfigParser*)conf, in); |
53 int r = cfg_parse_basic_file((ConfigParser*)conf, in); |
53 if(r != 0) { |
54 if(r != 0) { |
54 // TODO: free |
55 // TODO: free |
55 return NULL; |
56 return NULL; |