add mobile_ffi.rs

This commit is contained in:
csf 2022-07-31 15:45:29 +08:00
parent eec26e5c70
commit 859e292e1b

View File

@ -314,6 +314,9 @@ unsafe extern "C" fn set_by_name(name: *const c_char, value: *const c_char) {
"input_os_password" => { "input_os_password" => {
Session::input_os_password(value.to_owned(), true); Session::input_os_password(value.to_owned(), true);
} }
"restart_remote_device" => {
Session::restart_remote_device();
}
// File Action // File Action
"read_remote_dir" => { "read_remote_dir" => {
if let Ok(m) = serde_json::from_str::<HashMap<String, String>>(value) { if let Ok(m) = serde_json::from_str::<HashMap<String, String>>(value) {