cJSON_util.h 534 B

12345678910111213141516171819202122232425
  1. #ifndef __CJSON_UTIL_INCLUDE__
  2. #define __CJSON_UTIL_INCLUDE__
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. #include <stdlib.h>
  8. #include <stdint.h>
  9. #include <string.h>
  10. #include "cJSON.h"
  11. extern void cJSON_free(void *ptr);
  12. extern const char * cJSON_item_get_string(cJSON *object,const char *string);
  13. extern int cJSON_item_get_number(cJSON *object, const char *item_name, int * result);
  14. extern void cJSON_AddInteger2StringToObject(cJSON *object, const char *name, int i);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif /* __CJSON_UTIL_INCLUDE__ */