chiark / gitweb /
implement hashmap_replace() and hashmap_remove_value()
[elogind.git] / hashmap.h
index 91d8b46dba05aaec9699820b4f1de205b655960a..ae7f74bc0494b9a6dc4b3aaf35387db2b0d24741 100644 (file)
--- a/hashmap.h
+++ b/hashmap.h
@@ -26,8 +26,10 @@ void hashmap_free(Hashmap *h);
 Hashmap *hashmap_copy(Hashmap *h);
 
 int hashmap_put(Hashmap *h, const void *key, void *value);
+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_merge(Hashmap *h, Hashmap *other);