Lines Matching refs:capture
82 let capture = captures in handle_capture_get() localVariable
88 if capture.size == 0 { in handle_capture_get()
92 capture.device_name, in handle_capture_get()
93 capture.chip_kind in handle_capture_get()
96 let mut file = get_file(id, capture.device_name.clone(), capture.chip_kind)?; in handle_capture_get()
98 let time_display = TimeDisplay::new(capture.seconds, capture.nanos as u32); in handle_capture_get()
102 capture.device_name.clone(), in handle_capture_get()
103 capture.chip_kind, in handle_capture_get()
105 capture.extension in handle_capture_get()
109 capture.size, in handle_capture_get()
128 for capture in captures.values() { in handle_capture_list()
130 capture.lock().expect("Failed to acquire lock on CaptureInfo").get_capture_proto(), in handle_capture_list()
150 if let Some(mut capture) = captures in handle_capture_patch()
155 capture.start_capture()?; in handle_capture_patch()
157 capture.stop_capture(); in handle_capture_patch()
161 print_to_string_with_options(&capture.get_capture_proto(), &JSON_PRINT_OPTION) in handle_capture_patch()
247 if let Some(mut capture) = captures in handle_packet()
252 let chip_kind = capture.chip_kind; in handle_packet()
253 if let Some(ref mut file) = capture.file { in handle_packet()
265 capture.size += size; in handle_packet()
266 capture.records += 1; in handle_packet()
279 capture.size += size; in handle_packet()
280 capture.records += 1; in handle_packet()