|
|
@@ -1463,7 +1463,8 @@ struct array_list *json_object_get_array(const struct json_object *jso) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void json_object_array_sort(struct json_object *jso, int (*sort_fn)(const void *, const void *)) |
|
|
|
void json_object_array_sort(struct json_object *jso, |
|
|
|
int(__cdecl *sort_fn)(const void *, const void *)) |
|
|
|
{ |
|
|
|
assert(json_object_get_type(jso) == json_type_array); |
|
|
|
array_list_sort(JC_ARRAY(jso)->c_array, sort_fn); |
|
|
@@ -1471,7 +1472,7 @@ void json_object_array_sort(struct json_object *jso, int (*sort_fn)(const void * |
|
|
|
|
|
|
|
struct json_object *json_object_array_bsearch(const struct json_object *key, |
|
|
|
const struct json_object *jso, |
|
|
|
int (*sort_fn)(const void *, const void *)) |
|
|
|
int(__cdecl *sort_fn)(const void *, const void *)) |
|
|
|
{ |
|
|
|
struct json_object **result; |
|
|
|
|
|
|
|