diff --git a/winapps/src/freerdp.rs b/winapps/src/freerdp.rs new file mode 100644 index 0000000..ccc7888 --- /dev/null +++ b/winapps/src/freerdp.rs @@ -0,0 +1,19 @@ +pub mod freerdp { + use crate::RemoteClient; + + struct Freerdp {} + + impl RemoteClient for Freerdp { + fn check_depends(&self) { + todo!() + } + + fn load_config(&self, path: &str) { + todo!() + } + + fn run_app(&self, app: &str) { + todo!() + } + } +} \ No newline at end of file diff --git a/winapps/src/lib.rs b/winapps/src/lib.rs index 8e6937b..e178c9d 100644 --- a/winapps/src/lib.rs +++ b/winapps/src/lib.rs @@ -7,6 +7,16 @@ use std::{ path::Path, }; +mod freerdp; + +pub trait RemoteClient { + fn check_depends(&self); + + fn load_config(&self, path: &str); + + fn run_app(&self, app: &str); +} + #[derive(new, Debug, Deserialize, Serialize)] pub struct Config { #[new(value = "HostConfig::new()")] @@ -33,16 +43,6 @@ pub struct RemoteConfig { password: String, } -pub trait RemoteClient { - fn check_depends(&self) -> bool { - panic!("Dependency check not implemented!"); - } - - fn load_config(&self, path: &str); - - fn run_app(&self, app: &str); -} - pub fn load_config(path: Option<&str>) -> Config { let home = home_dir().expect("Could not find the home path!"); let default = &format!("{}{}", home.to_str().unwrap(), "/.config/winapps/");