Searched refs:cJSON (Results 1 – 8 of 8) sorted by relevance
/civetweb-2.7.6/examples/rest/cJSON/ |
D | cJSON.h | 53 typedef struct cJSON struct 56 struct cJSON *next; argument 57 struct cJSON *prev; argument 59 struct cJSON *child; argument 73 } cJSON; typedef 140 CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value); 143 CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_b… 146 CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item); 148 CJSON_PUBLIC(char *) cJSON_PrintUnformatted(const cJSON *item); 150 CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt); [all …]
|
D | cJSON_Utils.h | 26 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer); 27 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointerCaseSensitive(cJSON * const object, const char *pointer); 31 CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatches(cJSON * const from, cJSON * const to); 32 CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatchesCaseSensitive(cJSON * const from, cJSON * const to); 34 …void) cJSONUtils_AddPatchToArray(cJSON * const array, const char * const operation, const char * c… 36 CJSON_PUBLIC(int) cJSONUtils_ApplyPatches(cJSON * const object, const cJSON * const patches); 37 CJSON_PUBLIC(int) cJSONUtils_ApplyPatchesCaseSensitive(cJSON * const object, const cJSON * const pa… 62 CJSON_PUBLIC(cJSON *) cJSONUtils_MergePatch(cJSON *target, const cJSON * const patch); 63 CJSON_PUBLIC(cJSON *) cJSONUtils_MergePatchCaseSensitive(cJSON *target, const cJSON * const patch); 66 CJSON_PUBLIC(cJSON *) cJSONUtils_GenerateMergePatch(cJSON * const from, cJSON * const to); [all …]
|
D | cJSON.c | 76 CJSON_PUBLIC(char *) cJSON_GetStringValue(cJSON *item) { in cJSON_GetStringValue() 86 #error cJSON.h and cJSON.c have different versions. Make sure that both have the same. 203 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item() 205 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item() 208 memset(node, '\0', sizeof(cJSON)); in cJSON_New_Item() 215 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) in cJSON_Delete() 217 cJSON *next = NULL; in cJSON_Delete() 267 static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer) in parse_number() 344 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number) in cJSON_SetNumberHelper() 475 static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer) in print_number() [all …]
|
D | cJSON_Utils.c | 179 CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const object, const cJSON * c… in cJSONUtils_FindPointerFromObjectTo() 182 cJSON *current_child = 0; in cJSONUtils_FindPointerFromObjectTo() 242 static cJSON *get_array_item(const cJSON *array, size_t item) in get_array_item() 244 cJSON *child = array ? array->child : NULL; in get_array_item() 281 static cJSON *get_item_from_pointer(cJSON * const object, const char * pointer, const cJSON_bool ca… in get_item_from_pointer() 283 cJSON *current_element = object; in get_item_from_pointer() 328 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer) in cJSONUtils_GetPointer() 333 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointerCaseSensitive(cJSON * const object, const char *pointer) in cJSONUtils_GetPointerCaseSensitive() 373 static cJSON *detach_item_from_array(cJSON *array, size_t which) in detach_item_from_array() 375 cJSON *c = array->child; in detach_item_from_array() [all …]
|
D | README.md | 1 # cJSON chapter 3 cJSON Release 1.7.5 from https://github.com/DaveGamble/cJSON
|
D | LICENSE | 1 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
|
/civetweb-2.7.6/examples/rest/ |
D | Makefile | 11 SRC = rest.c cJSON/cJSON.c cJSON/cJSON_Utils.c
|
D | rest.c | 36 SendJSON(struct mg_connection *conn, cJSON *json_obj) in SendJSON() 60 cJSON *obj = cJSON_CreateObject(); in ExampleGET() 96 cJSON *obj, *elem; in ExamplePUT()
|