12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef _json_object_private_h_
- #define _json_object_private_h_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define LEN_DIRECT_STRING_DATA 32
- typedef void (json_object_private_delete_fn)(struct json_object *o);
- struct json_object
- {
- enum json_type o_type;
- json_object_private_delete_fn *_delete;
- json_object_to_json_string_fn *_to_json_string;
- int _ref_count;
- struct printbuf *_pb;
- union data {
- json_bool c_boolean;
- double c_double;
- int64_t c_int64;
- struct lh_table *c_object;
- struct array_list *c_array;
- struct {
- union {
-
- char *ptr;
- char data[LEN_DIRECT_STRING_DATA];
- } str;
- int len;
- } c_string;
- } o;
- json_object_delete_fn *_user_delete;
- void *_userdata;
- };
- void _json_c_set_last_err(const char *err_fmt, ...);
- extern const char *json_number_chars;
- extern const char *json_hex_chars;
- #ifdef __cplusplus
- }
- #endif
- #endif
|