Searched refs:json_writer_t (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/tools/bpf/bpftool/ |
D | json_writer.h | 23 typedef struct json_writer json_writer_t; typedef 26 json_writer_t *jsonw_new(FILE *f); 28 void jsonw_destroy(json_writer_t **self_p); 31 void jsonw_pretty(json_writer_t *self, bool on); 34 void jsonw_name(json_writer_t *self, const char *name); 37 void jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap); 38 void jsonw_printf(json_writer_t *self, const char *fmt, ...); 39 void jsonw_string(json_writer_t *self, const char *value); 40 void jsonw_bool(json_writer_t *self, bool value); 41 void jsonw_float(json_writer_t *self, double number); [all …]
|
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() 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 …]
|
D | btf_dumper.c | 25 static void btf_dumper_ptr(const void *data, json_writer_t *jw, in btf_dumper_ptr() 46 static void btf_dumper_enum(const void *data, json_writer_t *jw) in btf_dumper_enum() 77 const void *data, json_writer_t *jw, in btf_dumper_int_bits() 113 const void *data, json_writer_t *jw, in btf_dumper_int()
|
D | main.h | 89 extern json_writer_t *json_wtr; 155 json_writer_t *jw;
|
D | map.c | 248 static json_writer_t *get_btf_writer(void) in get_btf_writer() 250 json_writer_t *jw = jsonw_new(stdout); in get_btf_writer() 635 json_writer_t *btf_wtr; in do_dump() 796 json_writer_t *btf_wtr; in do_lookup()
|
D | main.c | 54 json_writer_t *json_wtr;
|