TuyaOS
include
components
lib_cJSON
include
cJSON.h
1
2
#ifndef cJSON__h
3
#define cJSON__h
4
5
#ifdef __cplusplus
6
extern
"C"
7
{
8
#endif
9
10
#include "ty_cJSON.h"
11
12
/* ty_cJSON Types: */
13
#define cJSON_False ty_cJSON_False
14
#define cJSON_True ty_cJSON_True
15
#define cJSON_NULL ty_cJSON_NULL
16
#define cJSON_Number ty_cJSON_Number
17
#define cJSON_String ty_cJSON_String
18
#define cJSON_Array ty_cJSON_Array
19
#define cJSON_Object ty_cJSON_Object
20
21
#define cJSON_IsReference ty_cJSON_IsReference
22
23
/* The cJSON structure: */
24
typedef
struct
ty_cJSON
cJSON
;
25
26
typedef
struct
ty_cJSON_Hooks cJSON_Hooks;
27
28
29
30
//#define cJSON_InitHooks ty_cJSON_InitHooks
31
#define cJSON_Parse ty_cJSON_Parse
32
#define cJSON_Print ty_cJSON_Print
33
#define cJSON_PrintUnformatted ty_cJSON_PrintUnformatted
34
#define cJSON_FreeBuffer ty_cJSON_FreeBuffer
35
#define cJSON_Delete ty_cJSON_Delete
36
#define cJSON_GetArraySize ty_cJSON_GetArraySize
37
#define cJSON_GetArrayItem ty_cJSON_GetArrayItem
38
39
#define cJSON_GetObjectItem ty_cJSON_GetObjectItem
40
#define cJSON_GetErrorPtr ty_cJSON_GetErrorPtr
41
42
#define cJSON_CreateNull ty_cJSON_CreateNull
43
#define cJSON_CreateTrue ty_cJSON_CreateTrue
44
#define cJSON_CreateFalse ty_cJSON_CreateFalse
45
#define cJSON_CreateBool ty_cJSON_CreateBool
46
#define cJSON_CreateNumber ty_cJSON_CreateNumber
47
#define cJSON_CreateString ty_cJSON_CreateString
48
#define cJSON_CreateArray ty_cJSON_CreateArray
49
#define cJSON_CreateObject ty_cJSON_CreateObject
50
51
#define cJSON_CreateIntArray ty_cJSON_CreateIntArray
52
#define cJSON_CreateFloatArray ty_cJSON_CreateFloatArray
53
#define cJSON_CreateDoubleArray ty_cJSON_CreateDoubleArray
54
#define cJSON_CreateStringArray ty_cJSON_CreateStringArray
55
56
#define cJSON_AddItemToArray ty_cJSON_AddItemToArray
57
#define cJSON_AddItemToObject ty_cJSON_AddItemToObject
58
#define cJSON_AddItemReferenceToArray ty_cJSON_AddItemReferenceToArray
59
#define cJSON_AddItemReferenceToObject ty_cJSON_AddItemReferenceToObject
60
61
#define cJSON_DetachItemFromArray ty_cJSON_DetachItemFromArray
62
#define cJSON_DeleteItemFromArray ty_cJSON_DeleteItemFromArray
63
#define cJSON_DetachItemFromObject ty_cJSON_DetachItemFromObject
64
#define cJSON_DeleteItemFromObject ty_cJSON_DeleteItemFromObject
65
66
#define cJSON_ReplaceItemInArray ty_cJSON_ReplaceItemInArray
67
#define cJSON_ReplaceItemInObject ty_cJSON_ReplaceItemInObject
68
69
#define cJSON_Duplicate ty_cJSON_Duplicate
70
#define cJSON_ParseWithOpts ty_cJSON_ParseWithOpts
71
72
#define cJSON_Minify ty_cJSON_Minify
73
74
#define cJSON_IsArray ty_cJSON_IsArray
75
#define cJSON_IsObject ty_cJSON_IsObject
76
#define cJSON_GetObjectItemCaseSensitive ty_cJSON_GetObjectItemCaseSensitive
77
#define cJSON_IsString ty_cJSON_IsString
78
#define cJSON_IsNumber ty_cJSON_IsNumber
79
#define cJSON_IsBool ty_cJSON_IsBool
80
81
82
83
#define cJSON_AddNullToObject(object,name) ty_cJSON_AddItemToObject(object, name, ty_cJSON_CreateNull())
84
#define cJSON_AddTrueToObject(object,name) ty_cJSON_AddItemToObject(object, name, ty_cJSON_CreateTrue())
85
#define cJSON_AddFalseToObject(object,name) ty_cJSON_AddItemToObject(object, name, ty_cJSON_CreateFalse())
86
#define cJSON_AddBoolToObject(object,name,b) ty_cJSON_AddItemToObject(object, name, ty_cJSON_CreateBool(b))
87
#define cJSON_AddNumberToObject(object,name,n) ty_cJSON_AddItemToObject(object, name, ty_cJSON_CreateNumber(n))
88
#define cJSON_AddStringToObject(object,name,s) ty_cJSON_AddItemToObject(object, name, ty_cJSON_CreateString(s))
89
90
#define cJSON_SetIntValue(object,val) ((object)?(object)->valueint=(object)->valuedouble=(val):(val))
91
92
#define cJSON_ArrayForEach(pos, head) for(pos = (head)->child; pos != NULL; pos = pos->next)
93
94
#ifdef __cplusplus
95
}
96
#endif
97
98
#endif
ty_cJSON
Definition:
ty_cJSON.h:45
制作者
1.9.4