Lines Matching refs:json_wtr
38 jsonw_start_object(json_wtr); in p_err()
39 jsonw_name(json_wtr, "error"); in p_err()
40 jsonw_vprintf_enquote(json_wtr, fmt, ap); in p_err()
41 jsonw_end_object(json_wtr); in p_err()
340 jsonw_start_array(json_wtr); in print_data_json()
342 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json()
343 jsonw_end_array(json_wtr); in print_data_json()
350 jsonw_start_array(json_wtr); in print_hex_data_json()
352 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json()
353 jsonw_end_array(json_wtr); in print_hex_data_json()
570 jsonw_name(json_wtr, "dev"); in print_dev_json()
571 jsonw_start_object(json_wtr); in print_dev_json()
572 jsonw_uint_field(json_wtr, "ifindex", ifindex); in print_dev_json()
573 jsonw_uint_field(json_wtr, "ns_dev", ns_dev); in print_dev_json()
574 jsonw_uint_field(json_wtr, "ns_inode", ns_inode); in print_dev_json()
576 jsonw_string_field(json_wtr, "ifname", name); in print_dev_json()
577 jsonw_end_object(json_wtr); in print_dev_json()