mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-20 03:31:00 +03:00
feat: android clipboard, multi-formats (#9950)
* feat: android clipboard, multi-formats Signed-off-by: fufesou <linlong1266@gmail.com> * Chore Signed-off-by: fufesou <linlong1266@gmail.com> * Remove unused code Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ use crate::ipc::Data;
|
||||
|
||||
pub mod audio_service;
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(not(any(target_os = "android", target_os = "ios")))] {
|
||||
if #[cfg(not(target_os = "ios"))] {
|
||||
mod clipboard_service;
|
||||
#[cfg(target_os = "linux")]
|
||||
pub(crate) mod wayland;
|
||||
@@ -42,17 +42,20 @@ pub mod uinput;
|
||||
pub mod rdp_input;
|
||||
#[cfg(target_os = "linux")]
|
||||
pub mod dbus;
|
||||
#[cfg(not(target_os = "android"))]
|
||||
pub mod input_service;
|
||||
} else {
|
||||
mod clipboard_service {
|
||||
pub const NAME: &'static str = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
pub mod input_service {
|
||||
pub const NAME_CURSOR: &'static str = "";
|
||||
pub const NAME_POS: &'static str = "";
|
||||
pub const NAME_WINDOW_FOCUS: &'static str = "";
|
||||
}
|
||||
}
|
||||
pub const NAME_CURSOR: &'static str = "";
|
||||
pub const NAME_POS: &'static str = "";
|
||||
pub const NAME_WINDOW_FOCUS: &'static str = "";
|
||||
}
|
||||
|
||||
mod connection;
|
||||
@@ -99,10 +102,12 @@ pub fn new() -> ServerPtr {
|
||||
};
|
||||
server.add_service(Box::new(audio_service::new()));
|
||||
#[cfg(not(target_os = "ios"))]
|
||||
server.add_service(Box::new(display_service::new()));
|
||||
{
|
||||
server.add_service(Box::new(display_service::new()));
|
||||
server.add_service(Box::new(clipboard_service::new()));
|
||||
}
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
{
|
||||
server.add_service(Box::new(clipboard_service::new()));
|
||||
if !display_service::capture_cursor_embedded() {
|
||||
server.add_service(Box::new(input_service::new_cursor()));
|
||||
server.add_service(Box::new(input_service::new_pos()));
|
||||
|
||||
Reference in New Issue
Block a user