2023-09-04 15:38:53 +08:00
|
|
|
use parking_lot::{Condvar, Mutex};
|
|
|
|
|
2023-08-24 22:34:12 +08:00
|
|
|
#[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>> {
|
|
|
|
windows::create_cliprdr_context(enable_files, enable_others, response_wait_timeout_secs)
|
|
|
|
}
|
2023-09-04 15:38:53 +08:00
|
|
|
|
|
|
|
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
|
|
|
/// use FUSE for file pasting on these platforms
|
|
|
|
pub mod fuse;
|
|
|
|
#[cfg(target_os = "linux")]
|
|
|
|
pub mod linux;
|
|
|
|
#[cfg(target_os = "linux")]
|
|
|
|
pub fn create_cliprdr_context(
|
|
|
|
enable_files: bool,
|
|
|
|
enable_others: bool,
|
|
|
|
response_wait_timeout_secs: u32,
|
|
|
|
) -> crate::ResultType<Box<dyn crate::CliprdrServiceContext>> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|