Removed DLL

Added All functions from DLL into HarmonyLinkServer
This commit is contained in:
Jordon Brooks 2023-06-22 01:40:59 +01:00
parent 53773040d6
commit 0d5497be1c
27 changed files with 2146 additions and 64 deletions

33
src/docking/structs.rs Normal file
View file

@ -0,0 +1,33 @@
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
pub struct Dock {
pub brand: String, // ex: JSAUX
pub model: String, // ex: HB0603
pub usb_ids: Vec<[u16; 2]>,
}
impl Dock {
pub fn new() -> Dock {
Dock { brand: String::new(),
model: String::new(),
usb_ids: vec![],
}
}
}
#[derive(Deserialize, Serialize)]
pub struct DockInfo {
pub dock_info: Dock,
pub is_docked: bool,
pub fallback_detection: bool,
}
impl DockInfo {
pub fn new() -> DockInfo {
DockInfo { dock_info: Dock::new(),
is_docked: false,
fallback_detection: false
}
}
}