(&self, udid: &str)
| 539 | } |
| 540 | |
| 541 | pub fn start_screen_recording(&self, udid: &str) -> Result<String, AppError> { |
| 542 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 543 | let recording_id = unsafe { |
| 544 | let mut error = ptr::null_mut(); |
| 545 | let raw = ffi::xcw_native_start_screen_recording(udid.as_ptr(), &mut error); |
| 546 | string_from_raw(raw, error)? |
| 547 | }; |
| 548 | Ok(recording_id) |
| 549 | } |
| 550 | |
| 551 | pub fn stop_screen_recording(&self, recording_id: &str) -> Result<Vec<u8>, AppError> { |
| 552 | let recording_id = |
no test coverage detected