Lines Matching refs:json_wtr
46 jsonw_start_object(json_wtr); in p_err()
47 jsonw_name(json_wtr, "error"); in p_err()
48 jsonw_vprintf_enquote(json_wtr, fmt, ap); in p_err()
49 jsonw_end_object(json_wtr); in p_err()
525 jsonw_start_array(json_wtr); in print_data_json()
527 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json()
528 jsonw_end_array(json_wtr); in print_data_json()
535 jsonw_start_array(json_wtr); in print_hex_data_json()
537 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json()
538 jsonw_end_array(json_wtr); in print_hex_data_json()
768 jsonw_name(json_wtr, "dev"); in print_dev_json()
769 jsonw_start_object(json_wtr); in print_dev_json()
770 jsonw_uint_field(json_wtr, "ifindex", ifindex); in print_dev_json()
771 jsonw_uint_field(json_wtr, "ns_dev", ns_dev); in print_dev_json()
772 jsonw_uint_field(json_wtr, "ns_inode", ns_inode); in print_dev_json()
774 jsonw_string_field(json_wtr, "ifname", name); in print_dev_json()
775 jsonw_end_object(json_wtr); in print_dev_json()