Lines Matching refs:cJSON
32 /* cJSON Types: */
44 /* The cJSON structure: */
45 typedef struct cJSON {
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;
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 *item);
71 /* Delete a cJSON entity and all subentities. */
72 void loader_cJSON_Delete(cJSON *c);
75 int loader_cJSON_GetArraySize(cJSON *array);
78 cJSON *loader_cJSON_GetArrayItem(cJSON *array, int item);
80 cJSON *loader_cJSON_GetObjectItem(cJSON *object, const char *string);
94 // @return - A pointer to a cJSON object representing the JSON parse tree.
96 VkResult loader_get_json(const struct loader_instance *inst, const char *filename, cJSON **json);
98 // Given a cJSON object, find the string associated with the key and puts an pre-allocated string into out_string.
101 VkResult loader_parse_json_string_to_existing_str(const struct loader_instance *inst, cJSON *object, const char *key,
104 // Given a cJSON object, find the string associated with the key and puts an allocated string into out_string.
106 VkResult loader_parse_json_string(cJSON *object, const char *key, char **out_string);
108 // Given a cJSON object, find the array of strings associated with they key and writes the count into out_count and data into
110 VkResult loader_parse_json_array_of_strings(const struct loader_instance *inst, cJSON *object, const char *key,