39 #define cJSON_Number 3
40 #define cJSON_String 4
42 #define cJSON_Object 6
44 #define cJSON_IsReference 256
61 void *(*malloc_fn)(std::size_t sz);
78 PCLAPI(
void) cJSON_PrintStr(
cJSON *item, std::string& s);
80 PCLAPI(
void) cJSON_PrintUnformattedStr(
cJSON *item, std::string& s);
90 PCLAPI(
const char *) cJSON_GetErrorPtr();
98 PCLAPI(
cJSON *) cJSON_CreateString(
const char *
string);
103 PCLAPI(
cJSON *) cJSON_CreateIntArray(
int *numbers,
int count);
104 PCLAPI(
cJSON *) cJSON_CreateFloatArray(
float *numbers,
int count);
105 PCLAPI(
cJSON *) cJSON_CreateDoubleArray(
double *numbers,
int count);
106 PCLAPI(
cJSON *) cJSON_CreateStringArray(
const char **strings,
int count);
110 PCLAPI(
void) cJSON_AddItemToObject(
cJSON *
object,
const char *
string,
cJSON *item);
113 PCLAPI(
void) cJSON_AddItemReferenceToObject(
cJSON *
object,
const char *
string,
cJSON *item);
117 PCLAPI(
void) cJSON_DeleteItemFromArray(
cJSON *array,
int which);
118 PCLAPI(
cJSON *) cJSON_DetachItemFromObject(
cJSON *
object,
const char *
string);
119 PCLAPI(
void) cJSON_DeleteItemFromObject(
cJSON *
object,
const char *
string);
122 PCLAPI(
void) cJSON_ReplaceItemInArray(
cJSON *array,
int which,
cJSON *newitem);
123 PCLAPI(
void) cJSON_ReplaceItemInObject(
cJSON *
object,
const char *
string,
cJSON *newitem);
125 #define cJSON_AddNullToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateNull())
126 #define cJSON_AddTrueToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateTrue())
127 #define cJSON_AddFalseToObject(object,name) cJSON_AddItemToObject(object, name, cJSON_CreateFalse())
128 #define cJSON_AddNumberToObject(object,name,n) cJSON_AddItemToObject(object, name, cJSON_CreateNumber(n))
129 #define cJSON_AddStringToObject(object,name,s) cJSON_AddItemToObject(object, name, cJSON_CreateString(s))
Defines all the PCL and non-PCL macros used.
void(* free_fn)(void *ptr)