summaryrefslogtreecommitdiffstats
path: root/src/wrap-json.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-12-14 18:37:10 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-12-18 11:04:53 +0100
commita8ffd5216cf61aa3dbf97d442e0e3184763d773f (patch)
tree938182742fac6f69718ff00a9a11bf890a6213b6 /src/wrap-json.h
parent0eb4c25cb5b63608fbef8458251c897a1766927b (diff)
wrap-json: Upgrade to latest version
Change-Id: Iaaf302aa13650390bc8536f19187708dd67fa174 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/wrap-json.h')
-rw-r--r--src/wrap-json.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/wrap-json.h b/src/wrap-json.h
index fd5b7c3..f43659a 100644
--- a/src/wrap-json.h
+++ b/src/wrap-json.h
@@ -41,16 +41,21 @@ extern int wrap_json_match(struct json_object *object, const char *desc, ...);
extern void wrap_json_optarray_for_all(struct json_object *object, void (*callback)(void*,struct json_object*), void *closure);
extern void wrap_json_array_for_all(struct json_object *object, void (*callback)(void*,struct json_object*), void *closure);
-
-extern void wrap_json_optarray_for_all(struct json_object *object, void (*callback)(void*,struct json_object*), void *closure);
-extern void wrap_json_array_for_all(struct json_object *object, void (*callback)(void*,struct json_object*), void *closure);
extern void wrap_json_object_for_all(struct json_object *object, void (*callback)(void*,struct json_object*,const char*), void *closure);
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);
+extern struct json_object *wrap_json_clone_depth(struct json_object *object, int depth);
+
+extern struct json_object *wrap_json_object_add(struct json_object *dest, struct json_object *added);
+
+extern struct json_object *wrap_json_sort(struct json_object *array);
+extern struct json_object *wrap_json_keys(struct json_object *object);
+extern int wrap_json_cmp(struct json_object *x, struct json_object *y);
+extern int wrap_json_equal(struct json_object *x, struct json_object *y);
+extern int wrap_json_contains(struct json_object *x, struct json_object *y);
#ifdef __cplusplus
}