Home
last modified time | relevance | path

Searched refs:cJSON (Results 1 - 25 of 35) sorted by relevance

12

/third_party/cJSON/
H A DcJSON.h2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
93 /* cJSON Types: */
110 /* The cJSON structure: */
111 typedef struct cJSON struct
114 struct cJSON *next;
115 struct cJSON *prev;
117 struct cJSON *child;
136 } cJSON; typedef
147 /* Limits how deeply nested arrays/objects can be before cJSON rejects to parse them.
153 /* returns the version of cJSON a
[all...]
H A DcJSON_Utils.h2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 #include "cJSON.h"
34 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer);
35 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointerCaseSensitive(cJSON * const object, const char *pointer);
39 CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatches(cJSON * const from, cJSON * const to);
40 CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatchesCaseSensitiv
[all...]
H A DcJSON_Utils.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
198 CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const object, const cJSON * const target) in cJSONUtils_FindPointerFromObjectTo()
201 cJSON *current_child = 0; in cJSONUtils_FindPointerFromObjectTo()
262 static cJSON *get_array_item(const cJSON *array, size_t item) in get_array_item()
264 cJSON *child = array ? array->child : NULL; in get_array_item()
301 static cJSON *get_item_from_pointer(cJSON * const object, const char * pointer, const cJSON_bool case_sensitive) in get_item_from_pointer()
303 cJSON *current_elemen in get_item_from_pointer()
[all...]
H A DcJSON.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
23 /* cJSON */
59 #include "cJSON.h"
99 CJSON_PUBLIC(char *) cJSON_GetStringValue(const cJSON * const item) in cJSON_GetStringValue()
110 CJSON_PUBLIC(long long *) cJSON_GetInt64NumberValue(cJSON * const item) in cJSON_GetInt64NumberValue()
121 CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item) in cJSON_GetNumberValue()
133 #error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
253 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item()
255 cJSON* nod in cJSON_New_Item()
[all...]
H A DMakefile1 CJSON_OBJ = cJSON.o
7 CJSON_TEST_SRC = cJSON.c test.c
55 #cJSON library names
86 #cJSON
87 $(CJSON_TEST): $(CJSON_TEST_SRC) cJSON.h
91 #cJSON
99 #cJSON
107 #cJSON
108 $(CJSON_OBJ): cJSON.c cJSON
[all...]
H A Dtest.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
26 #include "cJSON.h"
43 static int print_preallocated(cJSON *root) in print_preallocated()
112 cJSON *root = NULL; in create_objects()
113 cJSON *fmt = NULL; in create_objects()
114 cJSON *img = NULL; in create_objects()
115 cJSON *thm = NULL; in create_objects()
116 cJSON *fld = NULL; in create_objects()
/third_party/cJSON/tests/
H A Dcjson_add.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
50 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_add_null()
51 cJSON *null = NULL; in cjson_add_null_should_add_null()
63 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_fail_with_null_pointers()
73 cJSON *root = cJSON_CreateObject(); in cjson_add_null_should_fail_on_allocation_failure()
86 cJSON *root = cJSON_CreateObject(); in cjson_add_true_should_add_true()
87 cJSON *true_item = NULL; in cjson_add_true_should_add_true()
99 cJSON *root = cJSON_CreateObject(); in cjson_add_true_should_fail_with_null_pointers()
109 cJSON *root = cJSON_CreateObject(); in cjson_add_true_should_fail_on_allocation_failure()
166 cJSON *roo in cjson_add_false_should_add_false()
[all...]
H A Djson_patch_tests.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
32 static cJSON *parse_test_file(const char * const filename) in parse_test_file()
35 cJSON *json = NULL; in parse_test_file()
49 static cJSON_bool test_apply_patch(const cJSON * const test) in test_apply_patch()
51 cJSON *doc = NULL; in test_apply_patch()
52 cJSON *patch = NULL; in test_apply_patch()
53 cJSON *expected = NULL; in test_apply_patch()
54 cJSON *error_element = NULL; in test_apply_patch()
55 cJSON *comment = NULL; in test_apply_patch()
56 cJSON *disable in test_apply_patch()
[all...]
H A Dreadme_examples.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
53 cJSON *name = NULL; in create_monitor()
54 cJSON *resolutions = NULL; in create_monitor()
55 cJSON *resolution = NULL; in create_monitor()
56 cJSON *width = NULL; in create_monitor()
57 cJSON *height = NULL; in create_monitor()
60 cJSON *monitor = cJSON_CreateObject(); in create_monitor()
125 cJSON *resolutions = NULL; in create_monitor_with_helpers()
128 cJSON *monitor = cJSON_CreateObject(); in create_monitor_with_helpers()
143 cJSON *resolutio in create_monitor_with_helpers()
[all...]
H A Dmisc_tests.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
33 cJSON array[1]; in cjson_array_foreach_should_loop_over_arrays()
34 cJSON elements[10]; in cjson_array_foreach_should_loop_over_arrays()
35 cJSON *element_pointer = NULL; in cjson_array_foreach_should_loop_over_arrays()
61 cJSON *array = NULL; in cjson_array_foreach_should_not_dereference_null_pointer()
62 cJSON *element = NULL; in cjson_array_foreach_should_not_dereference_null_pointer()
68 cJSON *item = NULL; in cjson_get_object_item_should_get_object_items()
69 cJSON *found = NULL; in cjson_get_object_item_should_get_object_items()
99 cJSON *item = NULL; in cjson_get_object_item_case_sensitive_should_get_object_items()
100 cJSON *foun in cjson_get_object_item_case_sensitive_should_get_object_items()
[all...]
H A Dold_utils_tests.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
54 cJSON *root = NULL; in json_pointer_tests()
92 cJSON *object = NULL; in misc_tests()
93 cJSON *object1 = NULL; in misc_tests()
94 cJSON *object2 = NULL; in misc_tests()
95 cJSON *object3 = NULL; in misc_tests()
96 cJSON *object4 = NULL; in misc_tests()
97 cJSON *nums = NULL; in misc_tests()
98 cJSON *num6 = NULL; in misc_tests()
143 cJSON *sortm in sort_tests()
[all...]
H A Dmisc_int64_tests.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 static void assert_is_int64(cJSON *int64_number_item) in assert_is_int64()
39 cJSON *item = NULL; in cjson_get_object_item_should_get_object_items_with_int64()
40 cJSON *found = NULL; in cjson_get_object_item_should_get_object_items_with_int64()
73 cJSON *item = NULL; in cjson_get_object_item_case_sensitive_should_get_object_items_with_int64()
74 cJSON *found = NULL; in cjson_get_object_item_case_sensitive_should_get_object_items_with_int64()
107 cJSON number[1] = {{NULL, NULL, NULL, cJSON_Number | cJSON_IsInt64, NULL, 0, 0, NULL}}; in cjson_set_number_value_should_set_numbers_with_int64()
132 cJSON item[1]; in typecheck_functions_should_check_type_with_int64()
148 cJSON *item = cJSON_CreateString("item"); in cjson_functions_should_not_crash_with_null_pointers_with_int64()
162 cJSON *strin in cjson_get_number_value_should_get_a_number_with_int64()
[all...]
H A Dparse_examples.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 static cJSON *parse_file(const char *filename) in parse_file()
33 cJSON *parsed = NULL; in parse_file()
50 cJSON *tree = NULL; in do_test()
137 cJSON *tree = NULL; in file_test6_should_not_be_parsed()
185 cJSON *tree = NULL; in test12_should_not_be_parsed()
200 cJSON *tree = NULL; in test13_should_be_parsed_without_null_termination()
229 cJSON *tree = NULL; in test14_should_not_be_parsed()
H A Dcompare_tests.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
29 cJSON *a_json = NULL; in compare_from_string()
30 cJSON *b_json = NULL; in compare_from_string()
54 cJSON invalid[1]; in cjson_compare_should_compare_invalid_as_not_equal()
118 cJSON invalid[1]; in cjson_compare_should_not_accept_invalid_types()
138 cJSON *raw1 = NULL; in cjson_compare_should_compare_raw()
139 cJSON *raw2 = NULL; in cjson_compare_should_compare_raw()
H A Dparse_with_opts.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
30 cJSON *item = NULL; in parse_with_opts_should_handle_null()
64 cJSON *item = cJSON_ParseWithOpts("{}", NULL, true); in parse_with_opts_should_require_null_if_requested()
78 cJSON *item = cJSON_ParseWithOpts(json, &parse_end, false); in parse_with_opts_should_return_parse_end()
86 cJSON *with_bom = NULL; in parse_with_opts_should_parse_utf8_bom()
87 cJSON *without_bom = NULL; in parse_with_opts_should_parse_utf8_bom()
H A Dparse_object.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 static cJSON item[1];
33 static void assert_is_object(cJSON *object_item) in assert_is_object()
45 static void assert_is_child(cJSON *child_item, const char *name, int type) in assert_is_child()
117 cJSON *node = NULL; in parse_object_should_parse_objects_with_multiple_elements()
167 /* initialize cJSON item */ in main()
168 memset(item, 0, sizeof(cJSON)); in main()
H A Dparse_array.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 static cJSON item[1];
33 static void assert_is_array(cJSON *array_item) in assert_is_array()
118 cJSON *node = NULL; in parse_array_should_parse_arrays_with_multiple_elements()
158 /* initialize cJSON item */ in main()
159 memset(item, 0, sizeof(cJSON)); in main()
H A Dparse_number.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 static cJSON item[1];
33 static void assert_is_number(cJSON *number_item) in assert_is_number()
59 static void assert_is_int64(cJSON *int64_number_item) in assert_is_int64()
150 /* initialize cJSON item */ in main()
151 memset(item, 0, sizeof(cJSON)); in main()
H A Dparse_value.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 static cJSON item[1];
33 static void assert_is_value(cJSON *value_item, int type) in assert_is_value()
101 /* initialize cJSON item */ in main()
102 memset(item, 0, sizeof(cJSON)); in main()
H A Dparse_string.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 static cJSON item[1];
33 static void assert_is_string(cJSON *string_item) in assert_is_string()
124 /* initialize cJSON item and error pointer */ in main()
125 memset(item, 0, sizeof(cJSON)); in main()
H A Dcommon.h2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
26 #include "../cJSON.c"
28 void reset(cJSON *item);
29 void reset(cJSON *item) { in reset()
43 memset(item, 0, sizeof(cJSON)); in reset()
H A Dprint_number.c2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
31 cJSON item[1] = {{ NULL, NULL, NULL, cJSON_Number | cJSON_IsInt64, NULL, 0, 0, NULL }}; in assert_print_int64_number()
51 cJSON item[1]; in assert_print_number()
145 /* initialize cJSON item */ in main()
/third_party/vulkan-loader/loader/
H A DcJSON.h32 /* cJSON Types: */
44 /* The cJSON structure: */
45 typedef struct cJSON { struct
46 struct cJSON *next, *prev; /* next/prev allow you to walk array/object
49 struct cJSON *child; /* An array or object item will have a child pointer
63 } cJSON; typedef
65 /* Render a cJSON entity to text for transfer/storage. Free the char* when
67 char *loader_cJSON_Print(cJSON *item);
68 /* Render a cJSON entity to text for transfer/storage without any formatting.
70 char *loader_cJSON_PrintUnformatted(cJSON *ite
[all...]
H A DcJSON.c26 /* cJSON */
37 #include "cJSON.h"
72 static cJSON *cJSON_New_Item(const VkAllocationCallbacks *pAllocator) { in cJSON_New_Item()
73 cJSON *node = (cJSON *)cJSON_malloc(pAllocator, sizeof(cJSON)); in cJSON_New_Item()
75 memset(node, 0, sizeof(cJSON)); in cJSON_New_Item()
81 /* Delete a cJSON structure. */
82 void loader_cJSON_Delete(cJSON *c) { in loader_cJSON_Delete()
83 cJSON *nex in loader_cJSON_Delete()
[all...]
H A Dsettings.c27 #include "cJSON.h"
109 bool parse_json_enable_disable_option(const struct loader_instance* inst, cJSON* object, const char* key) { in parse_json_enable_disable_option()
123 VkResult parse_layer_configuration(const struct loader_instance* inst, cJSON* layer_configuration_json, in parse_layer_configuration()
148 cJSON* treat_as_implicit_manifest = loader_cJSON_GetObjectItem(layer_configuration_json, "treat_as_implicit_manifest"); in parse_layer_configuration()
159 VkResult parse_layer_configurations(const struct loader_instance* inst, cJSON* settings_object, loader_settings* loader_settings) { in parse_layer_configurations()
162 cJSON* layer_configurations = loader_cJSON_GetObjectItem(settings_object, "layers"); in parse_layer_configurations()
182 cJSON* layer = loader_cJSON_GetArrayItem(layer_configurations, i); in parse_layer_configurations()
297 cJSON* json = NULL; in get_loader_settings()
327 cJSON* settings_array = loader_cJSON_GetObjectItem(json, "settings_array"); in get_loader_settings()
328 cJSON* single_settings_objec in get_loader_settings()
[all...]

Completed in 12 milliseconds

12