Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 188 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ members = [
"providers/provider-simple",
"publishers/publisher-xenstore",
"publishers/publisher-console",
"xen-win-utils",
"xen-win-clipboard",
]

[profile.release]
Expand Down
6 changes: 5 additions & 1 deletion guest-metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ pub struct MemoryInfo {
pub mem_total: usize,
}

pub type ClipboardData = Box<[u8]>;

pub enum GuestMetric {
OperatingSystem(OsInfo),
AddIface(NetInterface),
RmIface(Uuid),
Memory(MemoryInfo),
Network(NetEvent),
CleanupIfaces,
/// clipboard data coming from the guest
GetClipboard(ClipboardData),
}

pub use os_info;
pub use os_info;
22 changes: 22 additions & 0 deletions providers/provider-clipboard/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "provider-clipboard"
version = "0.1.0"
edition = "2021"

[dependencies]
futures = "0.3.31"
xenstore-rs = "0.8"
guest-metrics = { path = "../../guest-metrics" }
anyhow = "1.0"
log = "0.4"
flume = "0.11"

[target."cfg(windows)".dependencies]
windows = {version = "0.61", features = [
"Win32_System_Pipes",
"Win32_System_RemoteDesktop",
"Win32_System_IO",
]}
windows-service = "0.8"
xen-win-utils = { path = "../../xen-win-utils" }
xenstore-win = { git = "https://github.com/TSnake41/xenstore-win.git", features = ["smol"] }
2 changes: 2 additions & 0 deletions providers/provider-clipboard/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod windows;
mod windows_worker;
Loading