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()
453 jsonw_start_array(json_wtr); in print_data_json()
455 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json()
456 jsonw_end_array(json_wtr); in print_data_json()
463 jsonw_start_array(json_wtr); in print_hex_data_json()
465 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json()
466 jsonw_end_array(json_wtr); in print_hex_data_json()
696 jsonw_name(json_wtr, "dev"); in print_dev_json()
697 jsonw_start_object(json_wtr); in print_dev_json()
698 jsonw_uint_field(json_wtr, "ifindex", ifindex); in print_dev_json()
699 jsonw_uint_field(json_wtr, "ns_dev", ns_dev); in print_dev_json()
700 jsonw_uint_field(json_wtr, "ns_inode", ns_inode); in print_dev_json()
702 jsonw_string_field(json_wtr, "ifname", name); in print_dev_json()
703 jsonw_end_object(json_wtr); in print_dev_json()