1.1 --- a/ucx/map.h Thu Oct 04 19:46:10 2012 +0200 1.2 +++ b/ucx/map.h Fri Oct 05 10:25:33 2012 +0200 1.3 @@ -66,14 +66,13 @@ 1.4 1.5 int ucx_map_iter_next(UcxMapIterator *i, void **elm); 1.6 1.7 -/* use for string maps only, values are not encoded */ 1.8 -int ucx_map_load(UcxMap *map, FILE *f); 1.9 -int ucx_map_store(UcxMap *map, FILE *f); 1.10 +/* use macros for string maps only, values are not encoded */ 1.11 +#define ucx_map_load(map, f) ucx_map_load_enc(map, f, NULL, NULL) 1.12 +#define ucx_map_store(map, f) ucx_map_store_enc(map, f, NULL, NULL) 1.13 1.14 -/* TODO: 1.15 int ucx_map_load_enc(UcxMap *map, FILE *f, copy_func decoder, void* decdata); 1.16 +/* encoders shall provide null terminated strings*/ 1.17 int ucx_map_store_enc(UcxMap *map, FILE *f, copy_func encoder, void* encdata); 1.18 - */ 1.19 1.20 #ifdef __cplusplus 1.21 }