Lines Matching refs:cJSON
68 static cJSON *cJSON_New_Item(void) { in cJSON_New_Item()
69 cJSON *node = (cJSON *)cJSON_malloc(sizeof(cJSON)); in cJSON_New_Item()
71 memset(node, 0, sizeof(cJSON)); in cJSON_New_Item()
76 void cJSON_Delete(cJSON *c) { in cJSON_Delete()
77 cJSON *next; in cJSON_Delete()
97 static const char *parse_number(cJSON *item, const char *num) { in parse_number()
186 static char *print_number(cJSON *item, printbuffer *p) { in print_number()
268 static const char *parse_string(cJSON *item, const char *str) { in parse_string()
464 static char *print_string(cJSON *item, printbuffer *p) { in print_string()
469 static const char *parse_value(cJSON *item, const char *value);
470 static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p);
471 static const char *parse_array(cJSON *item, const char *value);
472 static char *print_array(cJSON *item, int depth, int fmt, printbuffer *p);
473 static const char *parse_object(cJSON *item, const char *value);
474 static char *print_object(cJSON *item, int depth, int fmt, printbuffer *p);
484 cJSON *cJSON_ParseWithOpts(const char *value, const char **return_parse_end, in cJSON_ParseWithOpts()
487 cJSON *c = cJSON_New_Item(); in cJSON_ParseWithOpts()
513 cJSON *cJSON_Parse(const char *value) { in cJSON_Parse()
518 char *cJSON_Print(cJSON *item) { return print_value(item, 0, 1, 0); } in cJSON_Print()
519 char *cJSON_PrintUnformatted(cJSON *item) { return print_value(item, 0, 0, 0); } in cJSON_PrintUnformatted()
521 char *cJSON_PrintBuffered(cJSON *item, int prebuffer, int fmt) { in cJSON_PrintBuffered()
530 static const char *parse_value(cJSON *item, const char *value) { in parse_value()
564 static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p) { in print_value()
630 static const char *parse_array(cJSON *item, const char *value) { in parse_array()
631 cJSON *child; in parse_array()
651 cJSON *new_item; in parse_array()
669 static char *print_array(cJSON *item, int depth, int fmt, printbuffer *p) { in print_array()
673 cJSON *child = item->child; in print_array()
780 static const char *parse_object(cJSON *item, const char *value) { in parse_object()
781 cJSON *child; in parse_object()
810 cJSON *new_item; in parse_object()
838 static char *print_object(cJSON *item, int depth, int fmt, printbuffer *p) { in print_object()
842 cJSON *child = item->child; in print_object()
1012 int cJSON_GetArraySize(cJSON *array) { in cJSON_GetArraySize()
1013 cJSON *c = array->child; in cJSON_GetArraySize()
1019 cJSON *cJSON_GetArrayItem(cJSON *array, int item) { in cJSON_GetArrayItem()
1020 cJSON *c = array->child; in cJSON_GetArrayItem()
1025 cJSON *cJSON_GetObjectItem(cJSON *object, const char *string) { in cJSON_GetObjectItem()
1026 cJSON *c = object->child; in cJSON_GetObjectItem()
1033 static void suffix_object(cJSON *prev, cJSON *item) { in suffix_object()
1038 static cJSON *create_reference(cJSON *item) { in create_reference()
1039 cJSON *ref = cJSON_New_Item(); in create_reference()
1042 memcpy(ref, item, sizeof(cJSON)); in create_reference()
1050 void cJSON_AddItemToArray(cJSON *array, cJSON *item) { in cJSON_AddItemToArray()
1051 cJSON *c = array->child; in cJSON_AddItemToArray()
1062 void cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) { in cJSON_AddItemToObject()
1070 void cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) { in cJSON_AddItemToObjectCS()
1079 void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) { in cJSON_AddItemReferenceToArray()
1082 void cJSON_AddItemReferenceToObject(cJSON *object, const char *string, in cJSON_AddItemReferenceToObject()
1083 cJSON *item) { in cJSON_AddItemReferenceToObject()
1087 cJSON *cJSON_DetachItemFromArray(cJSON *array, int which) { in cJSON_DetachItemFromArray()
1088 cJSON *c = array->child; in cJSON_DetachItemFromArray()
1102 void cJSON_DeleteItemFromArray(cJSON *array, int which) { in cJSON_DeleteItemFromArray()
1105 cJSON *cJSON_DetachItemFromObject(cJSON *object, const char *string) { in cJSON_DetachItemFromObject()
1107 cJSON *c = object->child; in cJSON_DetachItemFromObject()
1114 void cJSON_DeleteItemFromObject(cJSON *object, const char *string) { in cJSON_DeleteItemFromObject()
1119 void cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem) { in cJSON_InsertItemInArray()
1120 cJSON *c = array->child; in cJSON_InsertItemInArray()
1135 void cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) { in cJSON_ReplaceItemInArray()
1136 cJSON *c = array->child; in cJSON_ReplaceItemInArray()
1152 void cJSON_ReplaceItemInObject(cJSON *object, const char *string, in cJSON_ReplaceItemInObject()
1153 cJSON *newitem) { in cJSON_ReplaceItemInObject()
1155 cJSON *c = object->child; in cJSON_ReplaceItemInObject()
1165 cJSON *cJSON_CreateNull(void) { in cJSON_CreateNull()
1166 cJSON *item = cJSON_New_Item(); in cJSON_CreateNull()
1171 cJSON *cJSON_CreateTrue(void) { in cJSON_CreateTrue()
1172 cJSON *item = cJSON_New_Item(); in cJSON_CreateTrue()
1177 cJSON *cJSON_CreateFalse(void) { in cJSON_CreateFalse()
1178 cJSON *item = cJSON_New_Item(); in cJSON_CreateFalse()
1183 cJSON *cJSON_CreateBool(int b) { in cJSON_CreateBool()
1184 cJSON *item = cJSON_New_Item(); in cJSON_CreateBool()
1189 cJSON *cJSON_CreateNumber(double num) { in cJSON_CreateNumber()
1190 cJSON *item = cJSON_New_Item(); in cJSON_CreateNumber()
1198 cJSON *cJSON_CreateString(const char *string) { in cJSON_CreateString()
1199 cJSON *item = cJSON_New_Item(); in cJSON_CreateString()
1206 cJSON *cJSON_CreateArray(void) { in cJSON_CreateArray()
1207 cJSON *item = cJSON_New_Item(); in cJSON_CreateArray()
1212 cJSON *cJSON_CreateObject(void) { in cJSON_CreateObject()
1213 cJSON *item = cJSON_New_Item(); in cJSON_CreateObject()
1220 cJSON *cJSON_CreateIntArray(const int *numbers, int count) { in cJSON_CreateIntArray()
1222 cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); in cJSON_CreateIntArray()
1233 cJSON *cJSON_CreateFloatArray(const float *numbers, int count) { in cJSON_CreateFloatArray()
1235 cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); in cJSON_CreateFloatArray()
1246 cJSON *cJSON_CreateDoubleArray(const double *numbers, int count) { in cJSON_CreateDoubleArray()
1248 cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); in cJSON_CreateDoubleArray()
1259 cJSON *cJSON_CreateStringArray(const char **strings, int count) { in cJSON_CreateStringArray()
1261 cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); in cJSON_CreateStringArray()
1274 cJSON *cJSON_Duplicate(cJSON *item, int recurse) { in cJSON_Duplicate()
1275 cJSON *newitem, *cptr, *nptr = 0, *newchild; in cJSON_Duplicate()