summaryrefslogtreecommitdiff
path: root/hashmap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 02:38:43 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 02:38:43 +0200
commit101d8e630eab1281a0e126a78433cf6d5bed4cb4 (patch)
tree83d534236bd94eac2a72ed44e71acf745d965901 /hashmap.h
parent3251df7dd7e88571108c1dc8a6c9f66cf891321b (diff)
hashmap,set: add new accessors that cannot fail on OOM
Diffstat (limited to 'hashmap.h')
-rw-r--r--hashmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hashmap.h b/hashmap.h
index bd57bca24a..9cdd7016bc 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);