linux_wayland_support: refactor

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-07-20 09:50:08 -07:00
parent 613b1a8582
commit 634cb5ef1a
6 changed files with 879 additions and 867 deletions

View File

@@ -7,7 +7,7 @@ use hbb_common::{
config::{Config, Config2, CONNECT_TIMEOUT, RELAY_PORT},
log,
message_proto::*,
protobuf::{Message as _, Enum},
protobuf::{Enum, Message as _},
rendezvous_proto::*,
socket_client,
sodiumoxide::crypto::{box_, secretbox, sign},
@@ -24,6 +24,10 @@ pub mod audio_service;
cfg_if::cfg_if! {
if #[cfg(not(any(target_os = "android", target_os = "ios")))] {
mod clipboard_service;
#[cfg(target_os = "linux")]
mod wayland;
#[cfg(target_os = "linux")]
pub mod uinput;
pub mod input_service;
} else {
mod clipboard_service {
@@ -280,7 +284,7 @@ impl Drop for Server {
s.join();
}
#[cfg(target_os = "linux")]
video_service::wayland_support::clear();
wayland::clear();
}
}