(&self, udid: &str)
| 836 | } |
| 837 | |
| 838 | pub fn pasteboard_text(&self, udid: &str) -> Result<String, AppError> { |
| 839 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 840 | unsafe { |
| 841 | let mut error = ptr::null_mut(); |
| 842 | let raw = ffi::xcw_native_get_pasteboard_text(udid.as_ptr(), &mut error); |
| 843 | string_from_raw(raw, error) |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | pub fn create_input_session(&self, udid: &str) -> Result<NativeInputSession, AppError> { |
| 848 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
no test coverage detected