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()
93 static const char *parse_number(cJSON *item, const char *num) { in parse_number()
182 static char *print_number(cJSON *item, printbuffer *p) { in print_number()
264 static const char *parse_string(cJSON *item, const char *str) { in parse_string()
461 static char *print_string(cJSON *item, printbuffer *p) { in print_string()
466 static const char *parse_value(cJSON *item, const char *value);
467 static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p);
468 static const char *parse_array(cJSON *item, const char *value);
469 static char *print_array(cJSON *item, int depth, int fmt, printbuffer *p);
470 static const char *parse_object(cJSON *item, const char *value);
471 static char *print_object(cJSON *item, int depth, int fmt, printbuffer *p);
481 cJSON *cJSON_ParseWithOpts(const char *value, const char **return_parse_end, in cJSON_ParseWithOpts()
484 cJSON *c = cJSON_New_Item(); in cJSON_ParseWithOpts()
510 cJSON *cJSON_Parse(const char *value) { in cJSON_Parse()
515 char *cJSON_Print(cJSON *item) { return print_value(item, 0, 1, 0); } in cJSON_Print()
516 char *cJSON_PrintUnformatted(cJSON *item) { return print_value(item, 0, 0, 0); } in cJSON_PrintUnformatted()
518 char *cJSON_PrintBuffered(cJSON *item, int prebuffer, int fmt) { in cJSON_PrintBuffered()
527 static const char *parse_value(cJSON *item, const char *value) { in parse_value()
561 static char *print_value(cJSON *item, int depth, int fmt, printbuffer *p) { in print_value()
627 static const char *parse_array(cJSON *item, const char *value) { in parse_array()
628 cJSON *child; in parse_array()
648 cJSON *new_item; in parse_array()
666 static char *print_array(cJSON *item, int depth, int fmt, printbuffer *p) { in print_array()
670 cJSON *child = item->child; in print_array()
777 static const char *parse_object(cJSON *item, const char *value) { in parse_object()
778 cJSON *child; in parse_object()
807 cJSON *new_item; in parse_object()
835 static char *print_object(cJSON *item, int depth, int fmt, printbuffer *p) { in print_object()
839 cJSON *child = item->child; in print_object()
1009 int cJSON_GetArraySize(cJSON *array) { in cJSON_GetArraySize()
1010 cJSON *c = array->child; in cJSON_GetArraySize()
1016 cJSON *cJSON_GetArrayItem(cJSON *array, int item) { in cJSON_GetArrayItem()
1017 cJSON *c = array->child; in cJSON_GetArrayItem()
1022 cJSON *cJSON_GetObjectItem(cJSON *object, const char *string) { in cJSON_GetObjectItem()
1023 cJSON *c = object->child; in cJSON_GetObjectItem()
1030 static void suffix_object(cJSON *prev, cJSON *item) { in suffix_object()
1035 static cJSON *create_reference(cJSON *item) { in create_reference()
1036 cJSON *ref = cJSON_New_Item(); in create_reference()
1039 memcpy(ref, item, sizeof(cJSON)); in create_reference()
1047 void cJSON_AddItemToArray(cJSON *array, cJSON *item) { in cJSON_AddItemToArray()
1048 cJSON *c = array->child; in cJSON_AddItemToArray()
1059 void cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) { in cJSON_AddItemToObject()
1067 void cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) { in cJSON_AddItemToObjectCS()
1076 void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) { in cJSON_AddItemReferenceToArray()
1079 void cJSON_AddItemReferenceToObject(cJSON *object, const char *string, in cJSON_AddItemReferenceToObject()
1080 cJSON *item) { in cJSON_AddItemReferenceToObject()
1084 cJSON *cJSON_DetachItemFromArray(cJSON *array, int which) { in cJSON_DetachItemFromArray()
1085 cJSON *c = array->child; in cJSON_DetachItemFromArray()
1099 void cJSON_DeleteItemFromArray(cJSON *array, int which) { in cJSON_DeleteItemFromArray()
1102 cJSON *cJSON_DetachItemFromObject(cJSON *object, const char *string) { in cJSON_DetachItemFromObject()
1104 cJSON *c = object->child; in cJSON_DetachItemFromObject()
1111 void cJSON_DeleteItemFromObject(cJSON *object, const char *string) { in cJSON_DeleteItemFromObject()
1116 void cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem) { in cJSON_InsertItemInArray()
1117 cJSON *c = array->child; in cJSON_InsertItemInArray()
1132 void cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) { in cJSON_ReplaceItemInArray()
1133 cJSON *c = array->child; in cJSON_ReplaceItemInArray()
1149 void cJSON_ReplaceItemInObject(cJSON *object, const char *string, in cJSON_ReplaceItemInObject()
1150 cJSON *newitem) { in cJSON_ReplaceItemInObject()
1152 cJSON *c = object->child; in cJSON_ReplaceItemInObject()
1162 cJSON *cJSON_CreateNull(void) { in cJSON_CreateNull()
1163 cJSON *item = cJSON_New_Item(); in cJSON_CreateNull()
1168 cJSON *cJSON_CreateTrue(void) { in cJSON_CreateTrue()
1169 cJSON *item = cJSON_New_Item(); in cJSON_CreateTrue()
1174 cJSON *cJSON_CreateFalse(void) { in cJSON_CreateFalse()
1175 cJSON *item = cJSON_New_Item(); in cJSON_CreateFalse()
1180 cJSON *cJSON_CreateBool(int b) { in cJSON_CreateBool()
1181 cJSON *item = cJSON_New_Item(); in cJSON_CreateBool()
1186 cJSON *cJSON_CreateNumber(double num) { in cJSON_CreateNumber()
1187 cJSON *item = cJSON_New_Item(); in cJSON_CreateNumber()
1195 cJSON *cJSON_CreateString(const char *string) { in cJSON_CreateString()
1196 cJSON *item = cJSON_New_Item(); in cJSON_CreateString()
1203 cJSON *cJSON_CreateArray(void) { in cJSON_CreateArray()
1204 cJSON *item = cJSON_New_Item(); in cJSON_CreateArray()
1209 cJSON *cJSON_CreateObject(void) { in cJSON_CreateObject()
1210 cJSON *item = cJSON_New_Item(); in cJSON_CreateObject()
1217 cJSON *cJSON_CreateIntArray(const int *numbers, int count) { in cJSON_CreateIntArray()
1219 cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); in cJSON_CreateIntArray()
1230 cJSON *cJSON_CreateFloatArray(const float *numbers, int count) { in cJSON_CreateFloatArray()
1232 cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); in cJSON_CreateFloatArray()
1243 cJSON *cJSON_CreateDoubleArray(const double *numbers, int count) { in cJSON_CreateDoubleArray()
1245 cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); in cJSON_CreateDoubleArray()
1256 cJSON *cJSON_CreateStringArray(const char **strings, int count) { in cJSON_CreateStringArray()
1258 cJSON *n = 0, *p = 0, *a = cJSON_CreateArray(); in cJSON_CreateStringArray()
1271 cJSON *cJSON_Duplicate(cJSON *item, int recurse) { in cJSON_Duplicate()
1272 cJSON *newitem, *cptr, *nptr = 0, *newchild; in cJSON_Duplicate()