summaryrefslogtreecommitdiffstats
path: root/wrap-json.h
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-08 15:54:31 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-11 10:08:19 +0200
commit826731fde22a34cfbd64035a3f20554a6b50a5cf (patch)
tree311bd9422071c9de482d50045f48f604e793ffe7 /wrap-json.h
parent547374849a76225b1a6a0dd8bb84ae27a601f19d (diff)
Add function to add one json array to another one
Add a function to add one json array to another one. The json array to add can be inserted at any place of the json array to complete using 'idx' parameter. Also, correct minor mistake in 'wrap_json_object_add' description. BUG-AGL: SPEC-2867 Change-Id: If194878527e8e283644f02f52e97d08d006fc220 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'wrap-json.h')
-rw-r--r--wrap-json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wrap-json.h b/wrap-json.h
index f43659a..6415119 100644
--- a/wrap-json.h
+++ b/wrap-json.h
@@ -51,6 +51,8 @@ extern struct json_object *wrap_json_clone_depth(struct json_object *object, int
extern struct json_object *wrap_json_object_add(struct json_object *dest, struct json_object *added);
+extern struct json_object *wrap_json_array_insert_array(struct json_object *dest, struct json_object *added, int idx);
+
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);