src/server/config/objconf.c

changeset 25
5dee29c7c530
parent 23
a2c8fc23c90e
child 44
3da1f7b6847f
equal deleted inserted replaced
24:1a7853a4257e 25:5dee29c7c530
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 conf->levels = NULL;
52 conf->objects = NULL;
53 conf->lines = NULL;
52 54
53 int r = cfg_parse_basic_file((ConfigParser*)conf, in); 55 int r = cfg_parse_basic_file((ConfigParser*)conf, in);
54 if(r != 0) { 56 if(r != 0) {
55 // TODO: free 57 // TODO: free
56 return NULL; 58 return NULL;

mercurial