()
| 77 | } |
| 78 | |
| 79 | pub fn list_webcams_value() -> Result<Value, AppError> { |
| 80 | let mut error_message = std::ptr::null_mut(); |
| 81 | let raw = unsafe { ffi::simdeck_camera_list_webcams_json(&mut error_message) }; |
| 82 | native_json(raw, error_message, "Unable to list Mac cameras.") |
| 83 | } |
| 84 | |
| 85 | pub fn start_camera(options: CameraStartOptions) -> Result<Value, AppError> { |
| 86 | validate_udid(&options.udid)?; |
nothing calls this directly
no test coverage detected