wrap-json: Upgrade to latest version
[src/app-framework-main.git] / src / wrap-json.h
index fd5b7c3..f43659a 100644 (file)
@@ -39,9 +39,6 @@ extern int wrap_json_check(struct json_object *object, const char *desc, ...);
 extern int wrap_json_vmatch(struct json_object *object, const char *desc, va_list args);
 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);
@@ -50,7 +47,15 @@ extern void wrap_json_for_all(struct json_object *object, void (*callback)(void*
 
 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
     }