diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-18 23:49:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-18 23:49:49 +0100 |
commit | 91cdde8a7a08c6797995cc67f4b55ac43780cdd8 (patch) | |
tree | e6bcc2d96a186a47b3076e0a95f495933dc5d9bd /hashmap.h | |
parent | 3efd4195676c3880771b9f5e3b3bd9ff35c5ad4b (diff) |
implement hashmap_copy() and hashmap_merge()
Diffstat (limited to 'hashmap.h')
-rw-r--r-- | hashmap.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |