Skip to content

Commit

Permalink
add voice_call start_pa
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk committed Jun 17, 2024
1 parent 4a648f0 commit f2a612c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
3 changes: 0 additions & 3 deletions flutter/lib/models/native_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ class PlatformFFI {
// Start a dbus service for uri links, no need to await
_ffiBind.mainStartDbusServer();
}
if (appType == kAppTypeConnectionManager) {
_ffiBind.mainStartPa();
}
} else if (isMacOS && isMain) {
// Start ipc service for uri links.
_ffiBind.mainStartIpcUrlServer();
Expand Down
4 changes: 0 additions & 4 deletions flutter/lib/web/bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1412,10 +1412,6 @@ class RustdeskImpl {
return false;
}

Future<void> mainStartPa({dynamic hint}) {
throw UnimplementedError();
}

bool mainHideDocker({dynamic hint}) {
throw UnimplementedError();
}
Expand Down
5 changes: 0 additions & 5 deletions src/flutter_ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1839,11 +1839,6 @@ pub fn main_is_login_wayland() -> SyncReturn<bool> {
SyncReturn(is_login_wayland())
}

pub fn main_start_pa() {
#[cfg(target_os = "linux")]
std::thread::spawn(crate::ipc::start_pa);
}

pub fn main_hide_docker() -> SyncReturn<bool> {
#[cfg(target_os = "macos")]
crate::platform::macos::hide_dock();
Expand Down
2 changes: 2 additions & 0 deletions src/ui_session_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,8 @@ impl<T: InvokeUiSession> Session<T> {

#[inline]
pub fn request_voice_call(&self) {
#[cfg(target_os = "linux")]
std::thread::spawn(crate::ipc::start_pa);
self.send(Data::NewVoiceCall);
}

Expand Down

0 comments on commit f2a612c

Please sign in to comment.