elevation request

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages committed 2023-01-14 17:39:46 +08:00
1 parent 741e5eeb0e
commit d3b490ac48
46 files changed
+900 -59

No files matched your search

+12
View File
@@ -492,6 +492,18 @@ pub fn session_resume_job(id: String, act_id: i32, is_remote: bool) {
}
}
pub fn session_elevate_direct(id: String) {
if let Some(session) = SESSIONS.read().unwrap().get(&id) {
session.elevate_direct();
}
}
pub fn session_elevate_with_logon(id: String, username: String, password: String) {
if let Some(session) = SESSIONS.read().unwrap().get(&id) {
session.elevate_with_logon(username, password);
}
}
pub fn main_get_sound_inputs() -> Vec<String> {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
return get_sound_inputs();