(&self, udid: &str, url: &str)
| 403 | } |
| 404 | |
| 405 | pub fn open_url(&self, udid: &str, url: &str) -> Result<(), AppError> { |
| 406 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 407 | let url = CString::new(url).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 408 | unsafe { |
| 409 | let mut error = ptr::null_mut(); |
| 410 | bool_result( |
| 411 | ffi::xcw_native_open_url(udid.as_ptr(), url.as_ptr(), &mut error), |
| 412 | error, |
| 413 | ) |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | pub fn launch_bundle(&self, udid: &str, bundle_id: &str) -> Result<(), AppError> { |
| 418 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
no test coverage detected