MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / native_stop_camera

Function native_stop_camera

packages/server/src/camera.rs:212–224  ·  view source on GitHub ↗
(udid: &str)

Source from the content-addressed store, hash-verified

210}
211
212fn native_stop_camera(udid: &str) -> Result<(), AppError> {
213 let udid = cstring("simulator UDID", udid)?;
214 let mut error_message = std::ptr::null_mut();
215 let ok = unsafe { ffi::simdeck_camera_stop(udid.as_ptr(), &mut error_message) };
216 if ok {
217 Ok(())
218 } else {
219 Err(native_error(
220 error_message,
221 "Unable to stop daemon camera simulation.",
222 ))
223 }
224}
225
226fn native_json(
227 raw: *mut c_char,

Callers 2

start_cameraFunction · 0.85
stop_cameraFunction · 0.85

Calls 3

cstringFunction · 0.85
simdeck_camera_stopFunction · 0.85
native_errorFunction · 0.85

Tested by

no test coverage detected