44#define cJSON_IsReference 256
61 void *(*malloc_fn)(std::size_t sz);
78PCLAPI(
void) cJSON_PrintStr(
cJSON *item, std::string& s);
80PCLAPI(
void) cJSON_PrintUnformattedStr(
cJSON *item, std::string& s);
90PCLAPI(
const char *) cJSON_GetErrorPtr();
98PCLAPI(
cJSON *) cJSON_CreateString(
const char *
string);
103PCLAPI(
cJSON *) cJSON_CreateIntArray(
int *numbers,
int count);
104PCLAPI(
cJSON *) cJSON_CreateFloatArray(
float *numbers,
int count);
105PCLAPI(
cJSON *) cJSON_CreateDoubleArray(
double *numbers,
int count);
106PCLAPI(
cJSON *) cJSON_CreateStringArray(
const char **strings,
int count);
110PCLAPI(
void) cJSON_AddItemToObject(
cJSON *
object,
const char *
string,
cJSON *item);
113PCLAPI(
void) cJSON_AddItemReferenceToObject(
cJSON *
object,
const char *
string,
cJSON *item);
117PCLAPI(
void) cJSON_DeleteItemFromArray(
cJSON *array,
int which);
118PCLAPI(
cJSON *) cJSON_DetachItemFromObject(
cJSON *
object,
const char *
string);
119PCLAPI(
void) cJSON_DeleteItemFromObject(
cJSON *
object,
const char *
string);
122PCLAPI(
void) cJSON_ReplaceItemInArray(
cJSON *array,
int which,
cJSON *newitem);
123PCLAPI(
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)