Home
last modified time | relevance | path

Searched refs:json_writer_t (Results 1 – 14 of 14) sorted by relevance

/external/iproute2/include/
Djson_writer.h22 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);
[all …]
Djson_print.h18 json_writer_t *get_json_writer(void);
/external/iproute2/lib/
Djson_writer.c33 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()
110 void jsonw_destroy(json_writer_t **self_p) in jsonw_destroy()
112 json_writer_t *self = *self_p; in jsonw_destroy()
121 void jsonw_pretty(json_writer_t *self, bool on) in jsonw_pretty()
127 static void jsonw_begin(json_writer_t *self, int c) in jsonw_begin()
[all …]
Djson_print.c18 static json_writer_t *_jw;
49 json_writer_t *get_json_writer(void) in get_json_writer()
/external/iproute2/rdma/
Drdma.h50 json_writer_t *jw;
/external/iproute2/misc/
Difstat.c308 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_raw_db()
454 static void print_one_json(json_writer_t *jw, const struct ifstat_ent *n, in print_one_json()
518 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_kern_db()
549 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_incr_db()
Dnstat.c298 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_kern_db()
345 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL; in dump_incr_db()
Dlnstat.c113 json_writer_t *jw = jsonw_new(of); in print_json()
/external/iproute2/ip/
Diplink_bridge_slave.c96 json_writer_t *jw = get_json_writer(); in _print_timer()
Diplink_bridge.c384 json_writer_t *jw = get_json_writer(); in _bridge_print_timer()
/external/iproute2/bridge/
Dvlan.c20 json_writer_t *jw_global;
Dmdb.c29 json_writer_t *jw_global;
Dfdb.c34 json_writer_t *jw_global;
/external/iproute2/devlink/
Ddevlink.c210 json_writer_t *jw;