X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=hashmap.h;h=9cdd7016bc9c22872cb4002356c3e4e0caa7267c;hp=bd57bca24a4bff7c9671f9ce12b0a2c405c4f03a;hb=2608882fe5438293f8a92050db3716242cde83fc;hpb=a7334b0952ab66c17ee787e36e6d2c5ceb387de6 diff --git a/hashmap.h b/hashmap.h index bd57bca24..9cdd7016b 100644 --- a/hashmap.h +++ b/hashmap.h @@ -55,8 +55,11 @@ int hashmap_replace(Hashmap *h, const void *key, void *value); void* hashmap_get(Hashmap *h, const void *key); void* hashmap_remove(Hashmap *h, const void *key); void* hashmap_remove_value(Hashmap *h, const void *key, void *value); +int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key, void *value); int hashmap_merge(Hashmap *h, Hashmap *other); +void hashmap_move(Hashmap *h, Hashmap *other); +int hashmap_move_one(Hashmap *h, Hashmap *other, const void *key); unsigned hashmap_size(Hashmap *h); bool hashmap_isempty(Hashmap *h);