summaryrefslogtreecommitdiff
path: root/hashmap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-18 23:49:49 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-18 23:49:49 +0100
commit91cdde8a7a08c6797995cc67f4b55ac43780cdd8 (patch)
treee6bcc2d96a186a47b3076e0a95f495933dc5d9bd /hashmap.h
parent3efd4195676c3880771b9f5e3b3bd9ff35c5ad4b (diff)
implement hashmap_copy() and hashmap_merge()
Diffstat (limited to 'hashmap.h')
-rw-r--r--hashmap.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/hashmap.h b/hashmap.h
index 4c946e35b9..e3b9d9aa30 100644
--- a/hashmap.h
+++ b/hashmap.h
@@ -22,12 +22,15 @@ unsigned trivial_hash_func(const void *p);
int trivial_compare_func(const void *a, const void *b);
Hashmap *hashmap_new(hash_func_t hash_func, compare_func_t compare_func);
-void hashmap_free(Hashmap*);
+void hashmap_free(Hashmap *h);
+Hashmap *hashmap_copy(Hashmap *h);
int hashmap_put(Hashmap *h, const void *key, void *value);
void* hashmap_get(Hashmap *h, const void *key);
void* hashmap_remove(Hashmap *h, const void *key);
+int hashmap_merge(Hashmap *h, Hashmap *other);
+
unsigned hashmap_size(Hashmap *h);
bool hashmap_isempty(Hashmap *h);