120 |
120 |
121 UcxMapIterator ucx_map_iterator(UcxMap *map); |
121 UcxMapIterator ucx_map_iterator(UcxMap *map); |
122 |
122 |
123 int ucx_map_iter_next(UcxMapIterator *i, UcxKey *key, void **elm); |
123 int ucx_map_iter_next(UcxMapIterator *i, UcxKey *key, void **elm); |
124 |
124 |
125 /* use macros for string maps only, values are not encoded */ |
|
126 #define ucx_map_load(map, f, alloc) ucx_map_load_enc(map, f, alloc, NULL, NULL) |
|
127 #define ucx_map_store(map, f) ucx_map_store_enc(map, f, NULL, NULL) |
|
128 |
|
129 int ucx_map_load_enc(UcxMap *map, FILE *f, UcxAllocator allocator, |
|
130 ucx_map_coder decoder, void* decdata); |
|
131 /* encoders shall provide null terminated strings*/ |
|
132 int ucx_map_store_enc(UcxMap *map, FILE *f, |
|
133 ucx_map_coder encoder, void* encdata); |
|
134 |
125 |
135 #ifdef __cplusplus |
126 #ifdef __cplusplus |
136 } |
127 } |
137 #endif |
128 #endif |
138 |
129 |