1.1 --- a/ucx/map.h Fri Oct 05 16:59:14 2012 +0200 1.2 +++ b/ucx/map.h Mon Oct 08 12:29:27 2012 +0200 1.3 @@ -64,11 +64,14 @@ 1.4 1.5 int ucx_map_put(UcxMap *map, UcxKey key, void *data); 1.6 void* ucx_map_get(UcxMap *map, UcxKey key); 1.7 +void* ucx_map_remove(UcxMap *map, UcxKey key); 1.8 1.9 #define ucx_map_sstr_put(m, s, d) ucx_map_put(m, ucx_key(s.ptr, s.length), d) 1.10 #define ucx_map_cstr_put(m, s, d) ucx_map_put(m, ucx_key(s, 1+strlen(s)), d) 1.11 #define ucx_map_sstr_get(m, s) ucx_map_get(m, ucx_key(s.ptr, s.length)) 1.12 #define ucx_map_cstr_get(m, s) ucx_map_get(m, ucx_key(s, 1+strlen(s))) 1.13 +#define ucx_map_sstr_remove(m, s) ucx_map_remove(m, ucx_key(s.ptr, s.length)) 1.14 +#define ucx_map_cstr_remove(m, s) ucx_map_remove(m, ucx_key(s, 1+strlen(s))) 1.15 1.16 UcxKey ucx_key(void *data, size_t len); 1.17