summaryrefslogtreecommitdiffstats
path: root/src/wrap-json.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-05-29 19:39:40 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-06-14 15:19:08 +0200
commit7da4612dd8c79202d443c8fdcc8e7ca39c452af0 (patch)
tree5132bf99fd77b93569afe071c72bceca8dabd037 /src/wrap-json.h
parent29d4cd977032b9fb02d49aea2ec0f7aeffff33da (diff)
wrap-json: sync with upstream
Change-Id: Ie4e7e759c9bc2a745835b722c9d26e560608aedb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/wrap-json.h')
-rw-r--r--src/wrap-json.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wrap-json.h b/src/wrap-json.h
index 56f9919..fd5b7c3 100644
--- a/src/wrap-json.h
+++ b/src/wrap-json.h
@@ -18,6 +18,10 @@
#pragma once
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
#include <stdarg.h>
#include <json-c/json.h>
@@ -44,3 +48,10 @@ extern void wrap_json_object_for_all(struct json_object *object, void (*callback
extern void wrap_json_optobject_for_all(struct json_object *object, void (*callback)(void*,struct json_object*,const char*), void *closure);
extern void wrap_json_for_all(struct json_object *object, void (*callback)(void*,struct json_object*,const char*), void *closure);
+extern struct json_object *wrap_json_clone(struct json_object *object);
+extern struct json_object *wrap_json_clone_deep(struct json_object *object);
+extern void wrap_json_object_add(struct json_object *dest, struct json_object *added);
+
+#ifdef __cplusplus
+ }
+#endif