ucx/map.h

changeset 44
46356d74e873
parent 42
ff3dd1ee7dee
child 45
dd03226c1a6b
equal deleted inserted replaced
43:02f38adea013 44:46356d74e873
45 }; 45 };
46 46
47 47
48 UcxMap *ucx_map_new(size_t size); 48 UcxMap *ucx_map_new(size_t size);
49 void ucx_map_free(UcxMap *map); 49 void ucx_map_free(UcxMap *map);
50 UcxMap *ucx_map_clone(UcxMap *map, copy_func fnc, void *data);
50 51
51 int ucx_map_put(UcxMap *map, UcxKey key, void *data); 52 int ucx_map_put(UcxMap *map, UcxKey key, void *data);
52 void* ucx_map_get(UcxMap *map, UcxKey key); 53 void* ucx_map_get(UcxMap *map, UcxKey key);
53 54
54 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d) 55 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d)

mercurial