From 859e292e1bd93d96aaa824b2c4820b23ecbf830c Mon Sep 17 00:00:00 2001 From: csf Date: Sun, 31 Jul 2022 15:45:29 +0800 Subject: [PATCH] add mobile_ffi.rs --- src/mobile_ffi.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mobile_ffi.rs b/src/mobile_ffi.rs index c3ed39764..ef2a986eb 100644 --- a/src/mobile_ffi.rs +++ b/src/mobile_ffi.rs @@ -314,6 +314,9 @@ unsafe extern "C" fn set_by_name(name: *const c_char, value: *const c_char) { "input_os_password" => { Session::input_os_password(value.to_owned(), true); } + "restart_remote_device" => { + Session::restart_remote_device(); + } // File Action "read_remote_dir" => { if let Ok(m) = serde_json::from_str::>(value) {