refactor: reload file hierarchies

rename libs/src/platform/{linux => unix}

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid 2023-10-28 22:43:13 +08:00
parent 4cd8d8a4a5
commit a575fe4934
No known key found for this signature in database
GPG Key ID: E0A5F564C51C056E
5 changed files with 5 additions and 5 deletions

View File

@ -17,8 +17,8 @@ pub fn create_cliprdr_context(
#[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(any(target_os = "linux", target_os = "macos"))]
pub mod unix;
#[cfg(target_os = "linux")]
pub fn create_cliprdr_context(
enable_files: bool,
@ -48,7 +48,7 @@ pub fn create_cliprdr_context(
log::warn!("umount {:?} may fail: {:?}", mnt_path, e);
}
let linux_ctx = linux::ClipboardContext::new(timeout, mnt_path.parse().unwrap())?;
let linux_ctx = unix::ClipboardContext::new(timeout, mnt_path.parse().unwrap())?;
log::debug!("start cliprdr FUSE");
linux_ctx.run().expect("failed to start cliprdr FUSE");

View File

@ -14,7 +14,7 @@ use lazy_static::lazy_static;
use parking_lot::Mutex;
use crate::{
platform::{fuse::FileDescription, linux::local_file::construct_file_list},
platform::{fuse::FileDescription, unix::local_file::construct_file_list},
send_data, ClipboardFile, CliprdrError, CliprdrServiceContext,
};

View File

@ -10,7 +10,7 @@ use parking_lot::Mutex;
use x11_clipboard::Clipboard;
use x11rb::protocol::xproto::Atom;
use crate::{platform::linux::send_format_list, CliprdrError};
use crate::{platform::unix::send_format_list, CliprdrError};
use super::{encode_path_to_uri, parse_plain_uri_list, SysClipboard};