summaryrefslogtreecommitdiff
path: root/src/shared/hashmap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-05-15 00:43:44 +0200
committerLennart Poettering <lennart@poettering.net>2014-05-15 00:43:44 +0200
commitc582a3b3e8d263defbda98ecff793431a4cffa93 (patch)
treed823122851054fa8e5814f9feda02da5ad48db0c /src/shared/hashmap.h
parent4f4f70361a64957c45a2d8f40bfb04c77b454697 (diff)
hashmap: add hashmap_remove2() to remove item from hashtable and return both value and key
Diffstat (limited to 'src/shared/hashmap.h')
-rw-r--r--src/shared/hashmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/hashmap.h b/src/shared/hashmap.h
index 154f68eaf0..bfad970078 100644
--- a/src/shared/hashmap.h
+++ b/src/shared/hashmap.h
@@ -69,6 +69,7 @@ void *hashmap_get(Hashmap *h, const void *key);
void *hashmap_get2(Hashmap *h, const void *key, void **rkey);
bool hashmap_contains(Hashmap *h, const void *key);
void *hashmap_remove(Hashmap *h, const void *key);
+void *hashmap_remove2(Hashmap *h, const void *key, void **rkey);
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);