diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-10-08 15:54:31 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-10-09 15:42:15 +0200 |
commit | 5b9cce9fd0a1da9aeaaba8465f9a2780282a2247 (patch) | |
tree | 1ff4f8f7b9cbfc0883b2b158efc1605db6605070 /wrap-json.h | |
parent | 25bb4512a2c2bc66f9eb255a872600f67bd4943f (diff) |
Add function to add one json array to another oneicefish_8.99.1icefish/8.99.18.99.1
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: I8936f298a4499f265646a75584d7fe6b29700513
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'wrap-json.h')
-rw-r--r-- | wrap-json.h | 2 |
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); |