444 const CxMapIterator *iter = it; |
444 const CxMapIterator *iter = it; |
445 return iter->elem != NULL; |
445 return iter->elem != NULL; |
446 } |
446 } |
447 |
447 |
448 CxMapIterator cx_kvl_map_iterator(const CxMap *map, enum cx_map_iterator_type type) { |
448 CxMapIterator cx_kvl_map_iterator(const CxMap *map, enum cx_map_iterator_type type) { |
449 CxMapIterator iter = {}; |
449 CxMapIterator iter = {0}; |
450 |
450 |
451 iter.type = type; |
451 iter.type = type; |
452 iter.map.c = map; |
452 iter.map.c = map; |
453 // although we iterate over the list, we only report that many elements that have a key in the map |
453 // although we iterate over the list, we only report that many elements that have a key in the map |
454 iter.elem_count = map->collection.size; |
454 iter.elem_count = map->collection.size; |