64 |
64 |
65 UcxMapIterator ucx_map_iterator(UcxMap *map); |
65 UcxMapIterator ucx_map_iterator(UcxMap *map); |
66 |
66 |
67 int ucx_map_iter_next(UcxMapIterator *i, void **elm); |
67 int ucx_map_iter_next(UcxMapIterator *i, void **elm); |
68 |
68 |
69 /* use for string maps only, values are not encoded */ |
69 /* use macros for string maps only, values are not encoded */ |
70 int ucx_map_load(UcxMap *map, FILE *f); |
70 #define ucx_map_load(map, f) ucx_map_load_enc(map, f, NULL, NULL) |
71 int ucx_map_store(UcxMap *map, FILE *f); |
71 #define ucx_map_store(map, f) ucx_map_store_enc(map, f, NULL, NULL) |
72 |
72 |
73 /* TODO: |
|
74 int ucx_map_load_enc(UcxMap *map, FILE *f, copy_func decoder, void* decdata); |
73 int ucx_map_load_enc(UcxMap *map, FILE *f, copy_func decoder, void* decdata); |
|
74 /* encoders shall provide null terminated strings*/ |
75 int ucx_map_store_enc(UcxMap *map, FILE *f, copy_func encoder, void* encdata); |
75 int ucx_map_store_enc(UcxMap *map, FILE *f, copy_func encoder, void* encdata); |
76 */ |
|
77 |
76 |
78 #ifdef __cplusplus |
77 #ifdef __cplusplus |
79 } |
78 } |
80 #endif |
79 #endif |
81 |
80 |