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

Function list_webcams_value

packages/server/src/camera.rs:79–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79pub 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
85pub fn start_camera(options: CameraStartOptions) -> Result<Value, AppError> {
86 validate_udid(&options.udid)?;

Callers

nothing calls this directly

Calls 2

native_jsonFunction · 0.85

Tested by

no test coverage detected