Lines Matching refs:json_writer_t
22 typedef struct json_writer json_writer_t; typedef
25 json_writer_t *jsonw_new(FILE *f);
27 void jsonw_destroy(json_writer_t **self_p);
30 void jsonw_pretty(json_writer_t *self, bool on);
33 void jsonw_name(json_writer_t *self, const char *name);
36 void jsonw_printf(json_writer_t *self, const char *fmt, ...);
37 void jsonw_string(json_writer_t *self, const char *value);
38 void jsonw_bool(json_writer_t *self, bool value);
39 void jsonw_float(json_writer_t *self, double number);
40 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num);
41 void jsonw_uint(json_writer_t *self, uint64_t number);
42 void jsonw_hu(json_writer_t *self, unsigned short number);
43 void jsonw_int(json_writer_t *self, int64_t number);
44 void jsonw_null(json_writer_t *self);
45 void jsonw_lluint(json_writer_t *self, unsigned long long int num);
48 void jsonw_string_field(json_writer_t *self, const char *prop, const char *val);
49 void jsonw_bool_field(json_writer_t *self, const char *prop, bool value);
50 void jsonw_float_field(json_writer_t *self, const char *prop, double num);
51 void jsonw_uint_field(json_writer_t *self, const char *prop, uint64_t num);
52 void jsonw_hu_field(json_writer_t *self, const char *prop, unsigned short num);
53 void jsonw_int_field(json_writer_t *self, const char *prop, int64_t num);
54 void jsonw_null_field(json_writer_t *self, const char *prop);
55 void jsonw_lluint_field(json_writer_t *self, const char *prop,
57 void jsonw_float_field_fmt(json_writer_t *self, const char *prop,
61 void jsonw_start_object(json_writer_t *self);
62 void jsonw_end_object(json_writer_t *self);
64 void jsonw_start_array(json_writer_t *self);
65 void jsonw_end_array(json_writer_t *self);