461 } |
461 } |
462 return NULL; |
462 return NULL; |
463 } |
463 } |
464 |
464 |
465 CxList* serverconfig_get_node_list(ConfigNode *parent, ConfigNodeType type, cxstring name) { |
465 CxList* serverconfig_get_node_list(ConfigNode *parent, ConfigNodeType type, cxstring name) { |
466 CxList *nodes = cxPointerLinkedListCreate(cxDefaultAllocator, cx_cmp_ptr); |
466 CxList *nodes = cxLinkedListCreate(cxDefaultAllocator, NULL, CX_STORE_POINTERS); |
467 |
467 |
468 for(ConfigNode *node=parent->children_begin;node;node=node->next) { |
468 for(ConfigNode *node=parent->children_begin;node;node=node->next) { |
469 if(node->type == type && !cx_strcasecmp(cx_strcast(node->name), name)) { |
469 if(node->type == type && !cx_strcasecmp(cx_strcast(node->name), name)) { |
470 cxListAdd(nodes, node); |
470 cxListAdd(nodes, node); |
471 } |
471 } |