src/server/config/objconf.c

changeset 490
d218607f5a7e
parent 459
f21b4ff81c01
equal deleted inserted replaced
489:921f83a8943f 490:d218607f5a7e
50 ObjectConfig *conf = malloc(sizeof(ObjectConfig)); 50 ObjectConfig *conf = malloc(sizeof(ObjectConfig));
51 conf->parser.parse = objconf_parse; 51 conf->parser.parse = objconf_parse;
52 conf->file = file; 52 conf->file = file;
53 //conf->conditions = NULL; 53 //conf->conditions = NULL;
54 conf->levels = NULL; 54 conf->levels = NULL;
55 conf->objects = cxPointerLinkedListCreate(cxDefaultAllocator, cx_cmp_ptr); 55 conf->objects = cxLinkedListCreate(cxDefaultAllocator, NULL, CX_STORE_POINTERS);
56 //conf->lines = NULL; 56 //conf->lines = NULL;
57 57
58 int r = cfg_parse_basic_file((ConfigParser*)conf, in); 58 int r = cfg_parse_basic_file((ConfigParser*)conf, in);
59 if(r != 0) { 59 if(r != 0) {
60 // TODO: free 60 // TODO: free

mercurial