ucx/map.h

changeset 46
48ca036d7d9c
parent 45
dd03226c1a6b
child 48
621a4430c404
equal deleted inserted replaced
45:dd03226c1a6b 46:48ca036d7d9c
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

mercurial