Searched refs:json_writer_t (Results 1 – 5 of 5) sorted by relevance
/external/iproute2/include/ |
D | json_writer.h | 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_string(json_writer_t *self, const char *value); 37 void jsonw_bool(json_writer_t *self, bool value); 38 void jsonw_float(json_writer_t *self, double number); 39 void jsonw_uint(json_writer_t *self, uint64_t number); 40 void jsonw_int(json_writer_t *self, int64_t number); [all …]
|
/external/iproute2/lib/ |
D | json_writer.c | 33 static void jsonw_indent(json_writer_t *self) in jsonw_indent() 41 static void jsonw_eol(json_writer_t *self) in jsonw_eol() 51 static void jsonw_eor(json_writer_t *self) in jsonw_eor() 61 static void jsonw_puts(json_writer_t *self, const char *str) in jsonw_puts() 97 json_writer_t *jsonw_new(FILE *f) in jsonw_new() 99 json_writer_t *self = malloc(sizeof(*self)); in jsonw_new() 111 void jsonw_destroy(json_writer_t **self_p) in jsonw_destroy() 113 json_writer_t *self = *self_p; in jsonw_destroy() 123 void jsonw_pretty(json_writer_t *self, bool on) in jsonw_pretty() 129 static void jsonw_begin(json_writer_t *self, int c) in jsonw_begin() [all …]
|
/external/iproute2/misc/ |
D | ifstat.c | 243 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_raw_db() 383 static void print_one_json(json_writer_t *jw, const struct ifstat_ent *n, in print_one_json() 447 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_kern_db() 473 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_incr_db()
|
D | nstat.c | 276 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_kern_db() 318 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_incr_db()
|
D | lnstat.c | 115 json_writer_t *jw = jsonw_new(of); in print_json()
|