navit  0.5.3-trunk
cJSON.h File Reference

Go to the source code of this file.

Data Structures

struct  cJSON
 
struct  cJSON_Hooks
 

Macros

#define cJSON_False   0
 
#define cJSON_True   1
 
#define cJSON_NULL   2
 
#define cJSON_Number   3
 
#define cJSON_String   4
 
#define cJSON_Array   5
 
#define cJSON_Object   6
 
#define cJSON_IsReference   256
 
#define cJSON_AddNullToObject(object, name)   cJSON_AddItemToObject(object, name, cJSON_CreateNull())
 
#define cJSON_AddTrueToObject(object, name)   cJSON_AddItemToObject(object, name, cJSON_CreateTrue())
 
#define cJSON_AddFalseToObject(object, name)   cJSON_AddItemToObject(object, name, cJSON_CreateFalse())
 
#define cJSON_AddNumberToObject(object, name, n)   cJSON_AddItemToObject(object, name, cJSON_CreateNumber(n))
 
#define cJSON_AddStringToObject(object, name, s)   cJSON_AddItemToObject(object, name, cJSON_CreateString(s))
 

Typedefs

typedef struct cJSON cJSON
 
typedef struct cJSON_Hooks cJSON_Hooks
 

Functions

void cJSON_InitHooks (cJSON_Hooks *hooks)
 
cJSONcJSON_Parse (const char *value)
 
char * cJSON_Print (cJSON *item)
 
char * cJSON_PrintUnformatted (cJSON *item)
 
void cJSON_Delete (cJSON *c)
 
int cJSON_GetArraySize (cJSON *array)
 
cJSONcJSON_GetArrayItem (cJSON *array, int item)
 
cJSONcJSON_GetObjectItem (cJSON *object, const char *string)
 
const char * cJSON_GetErrorPtr (void)
 
cJSONcJSON_CreateNull (void)
 
cJSONcJSON_CreateTrue (void)
 
cJSONcJSON_CreateFalse (void)
 
cJSONcJSON_CreateBool (int b)
 
cJSONcJSON_CreateNumber (double num)
 
cJSONcJSON_CreateString (const char *string)
 
cJSONcJSON_CreateArray (void)
 
cJSONcJSON_CreateObject (void)
 
cJSONcJSON_CreateIntArray (int *numbers, int count)
 
cJSONcJSON_CreateFloatArray (float *numbers, int count)
 
cJSONcJSON_CreateDoubleArray (double *numbers, int count)
 
cJSONcJSON_CreateStringArray (const char **strings, int count)
 
void cJSON_AddItemToArray (cJSON *array, cJSON *item)
 
void cJSON_AddItemToObject (cJSON *object, const char *string, cJSON *item)
 
void cJSON_AddItemReferenceToArray (cJSON *array, cJSON *item)
 
void cJSON_AddItemReferenceToObject (cJSON *object, const char *string, cJSON *item)
 
cJSONcJSON_DetachItemFromArray (cJSON *array, int which)
 
void cJSON_DeleteItemFromArray (cJSON *array, int which)
 
cJSONcJSON_DetachItemFromObject (cJSON *object, const char *string)
 
void cJSON_DeleteItemFromObject (cJSON *object, const char *string)
 
void cJSON_ReplaceItemInArray (cJSON *array, int which, cJSON *newitem)
 
void cJSON_ReplaceItemInObject (cJSON *object, const char *string, cJSON *newitem)
 

Macro Definition Documentation

◆ cJSON_AddFalseToObject

#define cJSON_AddFalseToObject (   object,
  name 
)    cJSON_AddItemToObject(object, name, cJSON_CreateFalse())

◆ cJSON_AddNullToObject

#define cJSON_AddNullToObject (   object,
  name 
)    cJSON_AddItemToObject(object, name, cJSON_CreateNull())

◆ cJSON_AddNumberToObject

#define cJSON_AddNumberToObject (   object,
  name,
 
)    cJSON_AddItemToObject(object, name, cJSON_CreateNumber(n))

◆ cJSON_AddStringToObject

#define cJSON_AddStringToObject (   object,
  name,
 
)    cJSON_AddItemToObject(object, name, cJSON_CreateString(s))

◆ cJSON_AddTrueToObject

#define cJSON_AddTrueToObject (   object,
  name 
)    cJSON_AddItemToObject(object, name, cJSON_CreateTrue())

◆ cJSON_Array

#define cJSON_Array   5

◆ cJSON_False

#define cJSON_False   0

◆ cJSON_IsReference

#define cJSON_IsReference   256

Referenced by cJSON_Delete(), and create_reference().

◆ cJSON_NULL

#define cJSON_NULL   2

◆ cJSON_Number

#define cJSON_Number   3

◆ cJSON_Object

#define cJSON_Object   6

◆ cJSON_String

#define cJSON_String   4

◆ cJSON_True

#define cJSON_True   1

Typedef Documentation

◆ cJSON

typedef struct cJSON cJSON

◆ cJSON_Hooks

typedef struct cJSON_Hooks cJSON_Hooks

Function Documentation

◆ cJSON_AddItemReferenceToArray()

void cJSON_AddItemReferenceToArray ( cJSON array,
cJSON item 
)

◆ cJSON_AddItemReferenceToObject()

void cJSON_AddItemReferenceToObject ( cJSON object,
const char *  string,
cJSON item 
)

◆ cJSON_AddItemToArray()

void cJSON_AddItemToArray ( cJSON array,
cJSON item 
)

◆ cJSON_AddItemToObject()

void cJSON_AddItemToObject ( cJSON object,
const char *  string,
cJSON item 
)

◆ cJSON_CreateArray()

◆ cJSON_CreateBool()

cJSON* cJSON_CreateBool ( int  b)

◆ cJSON_CreateDoubleArray()

cJSON* cJSON_CreateDoubleArray ( double *  numbers,
int  count 
)

◆ cJSON_CreateFalse()

cJSON* cJSON_CreateFalse ( void  )

◆ cJSON_CreateFloatArray()

cJSON* cJSON_CreateFloatArray ( float *  numbers,
int  count 
)

◆ cJSON_CreateIntArray()

cJSON* cJSON_CreateIntArray ( int *  numbers,
int  count 
)

◆ cJSON_CreateNull()

cJSON* cJSON_CreateNull ( void  )

◆ cJSON_CreateNumber()

◆ cJSON_CreateObject()

cJSON* cJSON_CreateObject ( void  )

◆ cJSON_CreateString()

cJSON* cJSON_CreateString ( const char *  string)

◆ cJSON_CreateStringArray()

cJSON* cJSON_CreateStringArray ( const char **  strings,
int  count 
)

◆ cJSON_CreateTrue()

cJSON* cJSON_CreateTrue ( void  )

◆ cJSON_Delete()

◆ cJSON_DeleteItemFromArray()

void cJSON_DeleteItemFromArray ( cJSON array,
int  which 
)

◆ cJSON_DeleteItemFromObject()

void cJSON_DeleteItemFromObject ( cJSON object,
const char *  string 
)

◆ cJSON_DetachItemFromArray()

cJSON* cJSON_DetachItemFromArray ( cJSON array,
int  which 
)

◆ cJSON_DetachItemFromObject()

cJSON* cJSON_DetachItemFromObject ( cJSON object,
const char *  string 
)

◆ cJSON_GetArrayItem()

cJSON* cJSON_GetArrayItem ( cJSON array,
int  item 
)

◆ cJSON_GetArraySize()

int cJSON_GetArraySize ( cJSON array)

References c, cJSON::child, and cJSON::next.

Referenced by vehicle_webos_bt_gap_callback().

◆ cJSON_GetErrorPtr()

const char* cJSON_GetErrorPtr ( void  )

References ep.

◆ cJSON_GetObjectItem()

cJSON* cJSON_GetObjectItem ( cJSON object,
const char *  string 
)

◆ cJSON_InitHooks()

void cJSON_InitHooks ( cJSON_Hooks hooks)

◆ cJSON_Parse()

cJSON* cJSON_Parse ( const char *  value)

◆ cJSON_Print()

char* cJSON_Print ( cJSON item)

References print_value().

◆ cJSON_PrintUnformatted()

char* cJSON_PrintUnformatted ( cJSON item)

References print_value().

◆ cJSON_ReplaceItemInArray()

void cJSON_ReplaceItemInArray ( cJSON array,
int  which,
cJSON newitem 
)

◆ cJSON_ReplaceItemInObject()

void cJSON_ReplaceItemInObject ( cJSON object,
const char *  string,
cJSON newitem 
)