mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-18 10:41:03 +03:00
* feat: macos, clipboard file Signed-off-by: fufesou <linlong1266@gmail.com> * Can't reuse file transfer Signed-off-by: fufesou <linlong1266@gmail.com> * handle paste task Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
27 lines
785 B
Rust
27 lines
785 B
Rust
#[cfg(target_os = "windows")]
|
|
pub mod windows;
|
|
#[cfg(target_os = "windows")]
|
|
pub fn create_cliprdr_context(
|
|
enable_files: bool,
|
|
enable_others: bool,
|
|
response_wait_timeout_secs: u32,
|
|
) -> crate::ResultType<Box<dyn crate::CliprdrServiceContext>> {
|
|
let boxed =
|
|
windows::create_cliprdr_context(enable_files, enable_others, response_wait_timeout_secs)?
|
|
as Box<_>;
|
|
Ok(boxed)
|
|
}
|
|
|
|
#[cfg(feature = "unix-file-copy-paste")]
|
|
pub mod unix;
|
|
|
|
#[cfg(target_os = "macos")]
|
|
pub fn create_cliprdr_context(
|
|
_enable_files: bool,
|
|
_enable_others: bool,
|
|
_response_wait_timeout_secs: u32,
|
|
) -> crate::ResultType<Box<dyn crate::CliprdrServiceContext>> {
|
|
let boxed = unix::macos::pasteboard_context::create_pasteboard_context()? as Box<_>;
|
|
Ok(boxed)
|
|
}
|