summaryrefslogtreecommitdiff
path: root/src/shared/hashmap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-25 01:19:24 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-25 01:24:44 +0200
commitd99ae53a7327e1520ea4b9a3408c2d7f938c4b37 (patch)
tree52754f0a756cc93c32099dad6f76ac93779626df /src/shared/hashmap.h
parentcae356ad49b505a5172d4dbb830d7ec8f32a9953 (diff)
journal: properly serialize fields with multiple values into JSON
This now matches the JSON serialization spec from: http://www.freedesktop.org/wiki/Software/systemd/json
Diffstat (limited to 'src/shared/hashmap.h')
-rw-r--r--src/shared/hashmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/hashmap.h b/src/shared/hashmap.h
index ed41817dda..55dea0a692 100644
--- a/src/shared/hashmap.h
+++ b/src/shared/hashmap.h
@@ -51,8 +51,10 @@ Hashmap *hashmap_copy(Hashmap *h);
int hashmap_ensure_allocated(Hashmap **h, hash_func_t hash_func, compare_func_t compare_func);
int hashmap_put(Hashmap *h, const void *key, void *value);
+int hashmap_update(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_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_remove_value(Hashmap *h, const void *key, void *value);