X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fhashmap.h;h=8fb7f82357abf76dabd32aa4dc3c8ee26bdc8ee7;hb=8630d370239482b6e4913e81011440b173e41b79;hp=3ff3efe8d158c694bc64a25ddc6e80a801d0f859;hpb=e99e38bbdcca3fe5956823bdb3d38544ccf93221;p=elogind.git diff --git a/src/hashmap.h b/src/hashmap.h index 3ff3efe8d..8fb7f8235 100644 --- a/src/hashmap.h +++ b/src/hashmap.h @@ -56,6 +56,7 @@ 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_remove_and_replace(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);