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

Function native_status

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

Source from the content-addressed store, hash-verified

178}
179
180fn native_status(udid: &str) -> Result<Value, AppError> {
181 let udid = cstring("simulator UDID", udid)?;
182 let mut error_message = std::ptr::null_mut();
183 let raw = unsafe { ffi::simdeck_camera_status(udid.as_ptr(), &mut error_message) };
184 native_json(raw, error_message, "Unable to read camera status.")
185}
186
187fn native_switch_camera(
188 udid: &str,

Callers 2

start_cameraFunction · 0.85
camera_statusFunction · 0.85

Calls 3

cstringFunction · 0.85
simdeck_camera_statusFunction · 0.85
native_jsonFunction · 0.85

Tested by

no test coverage detected