Lines Matching refs:json_writer_t

29 static void jsonw_indent(json_writer_t *self)  in jsonw_indent()
37 static void jsonw_eol(json_writer_t *self) in jsonw_eol()
47 static void jsonw_eor(json_writer_t *self) in jsonw_eor()
57 static void jsonw_puts(json_writer_t *self, const char *str) in jsonw_puts()
90 json_writer_t *jsonw_new(FILE *f) in jsonw_new()
92 json_writer_t *self = malloc(sizeof(*self)); in jsonw_new()
103 void jsonw_destroy(json_writer_t **self_p) in jsonw_destroy()
105 json_writer_t *self = *self_p; in jsonw_destroy()
114 void jsonw_pretty(json_writer_t *self, bool on) in jsonw_pretty()
119 void jsonw_reset(json_writer_t *self) in jsonw_reset()
126 static void jsonw_begin(json_writer_t *self, int c) in jsonw_begin()
134 static void jsonw_end(json_writer_t *self, int c) in jsonw_end()
147 void jsonw_name(json_writer_t *self, const char *name) in jsonw_name()
158 void jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap) in jsonw_vprintf_enquote()
166 void jsonw_printf(json_writer_t *self, const char *fmt, ...) in jsonw_printf()
177 void jsonw_start_object(json_writer_t *self) in jsonw_start_object()
182 void jsonw_end_object(json_writer_t *self) in jsonw_end_object()
187 void jsonw_start_array(json_writer_t *self) in jsonw_start_array()
192 void jsonw_end_array(json_writer_t *self) in jsonw_end_array()
198 void jsonw_string(json_writer_t *self, const char *value) in jsonw_string()
204 void jsonw_bool(json_writer_t *self, bool val) in jsonw_bool()
209 void jsonw_null(json_writer_t *self) in jsonw_null()
214 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num) in jsonw_float_fmt()
220 void jsonw_float(json_writer_t *self, double num) in jsonw_float()
226 void jsonw_hu(json_writer_t *self, unsigned short num) in jsonw_hu()
231 void jsonw_uint(json_writer_t *self, uint64_t num) in jsonw_uint()
236 void jsonw_lluint(json_writer_t *self, unsigned long long int num) in jsonw_lluint()
241 void jsonw_int(json_writer_t *self, int64_t num) in jsonw_int()
247 void jsonw_string_field(json_writer_t *self, const char *prop, const char *val) in jsonw_string_field()
253 void jsonw_bool_field(json_writer_t *self, const char *prop, bool val) in jsonw_bool_field()
260 void jsonw_float_field(json_writer_t *self, const char *prop, double val) in jsonw_float_field()
267 void jsonw_float_field_fmt(json_writer_t *self, in jsonw_float_field_fmt()
276 void jsonw_uint_field(json_writer_t *self, const char *prop, uint64_t num) in jsonw_uint_field()
282 void jsonw_hu_field(json_writer_t *self, const char *prop, unsigned short num) in jsonw_hu_field()
288 void jsonw_lluint_field(json_writer_t *self, in jsonw_lluint_field()
296 void jsonw_int_field(json_writer_t *self, const char *prop, int64_t num) in jsonw_int_field()
302 void jsonw_null_field(json_writer_t *self, const char *prop) in jsonw_null_field()
311 json_writer_t *wr = jsonw_new(stdout); in main()