y-compositor-protocol/src/lib.rs

36 lines
559 B
Rust

pub struct WindowOption {
funct: WindowFunction,
symbol: char,
}
pub type WindowBar = Vec<WindowOption>;
pub type WindowID = u64;
pub struct Window {
bar: WindowBar,
}
// TODO: Seperate out this versioning into ableos-ver
#[repr(C)]
pub struct Version {
pub major: u8,
pub minor: u8,
pub patch: u8,
}
pub type WindowFunction = fn() -> ();
pub enum Protocol {
Version(Version),
WindowCreate(Window),
WindowClose(WindowID),
ReturnWindowID(WindowID),
// WindowAccess(WindowID),
}
#[test]
fn test_version() {}