• Home
  • Raw
  • Download

Lines Matching refs:cJSON

106 CJSON_PUBLIC(char *) cJSON_GetStringValue(cJSON *item)   in cJSON_GetStringValue()
116 CJSON_PUBLIC(double) cJSON_GetNumberValue(cJSON *item) in cJSON_GetNumberValue()
128 #error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
248 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item()
250 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()
253 memset(node, '\0', sizeof(cJSON)); in cJSON_New_Item()
260 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) in cJSON_Delete()
262 cJSON *next = NULL; in cJSON_Delete()
312 static cJSON_bool parse_number(cJSON * const item, parse_buffer * const input_buffer) in parse_number()
389 CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number) in cJSON_SetNumberHelper()
407 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring()
554 static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer) in print_number()
778 static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_buffer) in parse_string()
1029 static cJSON_bool print_string(const cJSON * const item, printbuffer * const p) in print_string()
1035 static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer);
1036 static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer);
1037 static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer);
1038 static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer);
1039 static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer);
1040 static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer);
1084 CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_b… in cJSON_ParseWithOpts()
1100 CJSON_PUBLIC(cJSON *) cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char… in cJSON_ParseWithLengthOpts()
1103 cJSON *item = NULL; in cJSON_ParseWithLengthOpts()
1180 CJSON_PUBLIC(cJSON *) cJSON_Parse(const char *value) in cJSON_Parse()
1185 CJSON_PUBLIC(cJSON *) cJSON_ParseWithLength(const char *value, size_t buffer_length) in cJSON_ParseWithLength()
1192 static unsigned char *print(const cJSON * const item, cJSON_bool format, const internal_hooks * con… in print()
1257 CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item) in cJSON_Print()
1262 CJSON_PUBLIC(char *) cJSON_PrintUnformatted(const cJSON *item) in cJSON_PrintUnformatted()
1267 CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt) in cJSON_PrintBuffered()
1297 CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const… in cJSON_PrintPreallocated()
1317 static cJSON_bool parse_value(cJSON * const item, parse_buffer * const input_buffer) in parse_value()
1372 static cJSON_bool print_value(const cJSON * const item, printbuffer * const output_buffer) in print_value()
1446 static cJSON_bool parse_array(cJSON * const item, parse_buffer * const input_buffer) in parse_array()
1448 cJSON *head = NULL; /* head of the linked list */ in parse_array()
1449 cJSON *current_item = NULL; in parse_array()
1484 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_array()
1540 static cJSON_bool print_array(const cJSON * const item, printbuffer * const output_buffer) in print_array()
1544 cJSON *current_element = item->child; in print_array()
1602 static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_buffer) in parse_object()
1604 cJSON *head = NULL; /* linked list head */ in parse_object()
1605 cJSON *current_item = NULL; in parse_object()
1638 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_object()
1711 static cJSON_bool print_object(const cJSON * const item, printbuffer * const output_buffer) in print_object()
1715 cJSON *current_item = item->child; in print_object()
1825 CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array) in cJSON_GetArraySize()
1827 cJSON *child = NULL; in cJSON_GetArraySize()
1848 static cJSON* get_array_item(const cJSON *array, size_t index) in get_array_item()
1850 cJSON *current_child = NULL; in get_array_item()
1867 CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index) in cJSON_GetArrayItem()
1877 static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool… in get_object_item()
1879 cJSON *current_element = NULL; in get_object_item()
1909 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string) in cJSON_GetObjectItem()
1914 CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * con… in cJSON_GetObjectItemCaseSensitive()
1919 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string) in cJSON_HasObjectItem()
1925 static void suffix_object(cJSON *prev, cJSON *item) in suffix_object()
1932 static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks) in create_reference()
1934 cJSON *reference = NULL; in create_reference()
1946 memcpy(reference, item, sizeof(cJSON)); in create_reference()
1953 static cJSON_bool add_item_to_array(cJSON *array, cJSON *item) in add_item_to_array()
1955 cJSON *child = NULL; in add_item_to_array()
1996 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToArray(cJSON *array, cJSON *item) in cJSON_AddItemToArray()
2017 static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const… in add_item_to_object()
2054 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObject()
2060 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item) in cJSON_AddItemToObjectCS()
2065 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) in cJSON_AddItemReferenceToArray()
2075 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *i… in cJSON_AddItemReferenceToObject()
2085 CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) in cJSON_AddNullToObject()
2087 cJSON *null = cJSON_CreateNull(); in cJSON_AddNullToObject()
2097 CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) in cJSON_AddTrueToObject()
2099 cJSON *true_item = cJSON_CreateTrue(); in cJSON_AddTrueToObject()
2109 CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) in cJSON_AddFalseToObject()
2111 cJSON *false_item = cJSON_CreateFalse(); in cJSON_AddFalseToObject()
2121 CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJS… in cJSON_AddBoolToObject()
2123 cJSON *bool_item = cJSON_CreateBool(boolean); in cJSON_AddBoolToObject()
2133 CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const d… in cJSON_AddNumberToObject()
2135 cJSON *number_item = cJSON_CreateNumber(number); in cJSON_AddNumberToObject()
2145 CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const c… in cJSON_AddStringToObject()
2147 cJSON *string_item = cJSON_CreateString(string); in cJSON_AddStringToObject()
2157 CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char… in cJSON_AddRawToObject()
2159 cJSON *raw_item = cJSON_CreateRaw(raw); in cJSON_AddRawToObject()
2169 CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) in cJSON_AddObjectToObject()
2171 cJSON *object_item = cJSON_CreateObject(); in cJSON_AddObjectToObject()
2181 CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) in cJSON_AddArrayToObject()
2183 cJSON *array = cJSON_CreateArray(); in cJSON_AddArrayToObject()
2193 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) in cJSON_DetachItemViaPointer()
2223 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which) in cJSON_DetachItemFromArray()
2233 CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which) in cJSON_DeleteItemFromArray()
2238 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObject(cJSON *object, const char *string) in cJSON_DetachItemFromObject()
2240 cJSON *to_detach = cJSON_GetObjectItem(object, string); in cJSON_DetachItemFromObject()
2245 CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DetachItemFromObjectCaseSensitive()
2247 cJSON *to_detach = cJSON_GetObjectItemCaseSensitive(object, string); in cJSON_DetachItemFromObjectCaseSensitive()
2252 CJSON_PUBLIC(void) cJSON_DeleteItemFromObject(cJSON *object, const char *string) in cJSON_DeleteItemFromObject()
2257 CJSON_PUBLIC(void) cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string) in cJSON_DeleteItemFromObjectCaseSensitive()
2263 CJSON_PUBLIC(cJSON_bool) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_InsertItemInArray()
2265 cJSON *after_inserted = NULL; in cJSON_InsertItemInArray()
2292 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSO… in cJSON_ReplaceItemViaPointer()
2333 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_ReplaceItemInArray()
2343 static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJS… in replace_item_in_object()
2361 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newite… in cJSON_ReplaceItemInObject()
2366 …BLIC(cJSON_bool) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *… in cJSON_ReplaceItemInObjectCaseSensitive()
2372 CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void) in cJSON_CreateNull()
2374 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNull()
2383 CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void) in cJSON_CreateTrue()
2385 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateTrue()
2394 CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void) in cJSON_CreateFalse()
2396 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateFalse()
2405 CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean) in cJSON_CreateBool()
2407 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateBool()
2416 CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num) in cJSON_CreateNumber()
2418 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNumber()
2442 CJSON_PUBLIC(cJSON *) cJSON_CreateString(const char *string) in cJSON_CreateString()
2444 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateString()
2459 CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string) in cJSON_CreateStringReference()
2461 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateStringReference()
2471 CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) in cJSON_CreateObjectReference()
2473 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateObjectReference()
2476 item->child = (cJSON*)cast_away_const(child); in cJSON_CreateObjectReference()
2482 CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { in cJSON_CreateArrayReference()
2483 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateArrayReference()
2486 item->child = (cJSON*)cast_away_const(child); in cJSON_CreateArrayReference()
2492 CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) in cJSON_CreateRaw()
2494 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateRaw()
2509 CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void) in cJSON_CreateArray()
2511 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateArray()
2520 CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void) in cJSON_CreateObject()
2522 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateObject()
2532 CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count) in cJSON_CreateIntArray()
2535 cJSON *n = NULL; in cJSON_CreateIntArray()
2536 cJSON *p = NULL; in cJSON_CreateIntArray()
2537 cJSON *a = NULL; in cJSON_CreateIntArray()
2567 CJSON_PUBLIC(cJSON *) cJSON_CreateFloatArray(const float *numbers, int count) in cJSON_CreateFloatArray()
2570 cJSON *n = NULL; in cJSON_CreateFloatArray()
2571 cJSON *p = NULL; in cJSON_CreateFloatArray()
2572 cJSON *a = NULL; in cJSON_CreateFloatArray()
2603 CJSON_PUBLIC(cJSON *) cJSON_CreateDoubleArray(const double *numbers, int count) in cJSON_CreateDoubleArray()
2606 cJSON *n = NULL; in cJSON_CreateDoubleArray()
2607 cJSON *p = NULL; in cJSON_CreateDoubleArray()
2608 cJSON *a = NULL; in cJSON_CreateDoubleArray()
2639 CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char *const *strings, int count) in cJSON_CreateStringArray()
2642 cJSON *n = NULL; in cJSON_CreateStringArray()
2643 cJSON *p = NULL; in cJSON_CreateStringArray()
2644 cJSON *a = NULL; in cJSON_CreateStringArray()
2676 CJSON_PUBLIC(cJSON *) cJSON_Duplicate(const cJSON *item, cJSON_bool recurse) in cJSON_Duplicate()
2678 cJSON *newitem = NULL; in cJSON_Duplicate()
2679 cJSON *child = NULL; in cJSON_Duplicate()
2680 cJSON *next = NULL; in cJSON_Duplicate()
2681 cJSON *newchild = NULL; in cJSON_Duplicate()
2852 CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item) in cJSON_IsInvalid()
2862 CJSON_PUBLIC(cJSON_bool) cJSON_IsFalse(const cJSON * const item) in cJSON_IsFalse()
2872 CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item) in cJSON_IsTrue()
2883 CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item) in cJSON_IsBool()
2892 CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item) in cJSON_IsNull()
2902 CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item) in cJSON_IsNumber()
2912 CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON * const item) in cJSON_IsString()
2922 CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item) in cJSON_IsArray()
2932 CJSON_PUBLIC(cJSON_bool) cJSON_IsObject(const cJSON * const item) in cJSON_IsObject()
2942 CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON * const item) in cJSON_IsRaw()
2952 CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bo… in cJSON_Compare()
3012 cJSON *a_element = a->child; in cJSON_Compare()
3013 cJSON *b_element = b->child; in cJSON_Compare()
3036 cJSON *a_element = NULL; in cJSON_Compare()
3037 cJSON *b_element = NULL; in cJSON_Compare()