Files
feresaria/crates/ferese-protocols/src/lib.rs
T
Samuel Onoja 533cd74c94 perf(capture): add SceneLens GPU streams and retained scene reuse
Use persistent privacy-filtered capture targets and client-owned GPU buffers with fence completion, backpressure, negotiated frame rates and shared-memory fallback.

Invalidate output views on scene changes while preserving inactive-window callbacks and capture revocation. Include OBS memory-mask negotiation and native pixel, transport and recording regressions.
2026-10-24 19:58:54 +01:00

242 lines
7.8 KiB
Rust

// The scanner's generated modules resolve protocol objects through these namespaces.
#![allow(
clippy::wildcard_imports,
reason = "Wayland scanner bindings require protocol imports"
)]
#![forbid(unsafe_code)]
/// Semantic surface effects protocol.
pub mod effects {
/// Version 1 of the semantic surface effects protocol.
pub mod v1 {
/// Maximum regions and region opacities in one effects request.
pub const MAX_REGIONS: usize = 32;
#[cfg(feature = "client")]
pub use generated::client;
#[cfg(feature = "server")]
pub use generated::server;
mod generated {
#![allow(
dead_code,
non_camel_case_types,
non_upper_case_globals,
non_snake_case,
unused_imports,
unused_unsafe,
unused_variables,
clippy::all
)]
#[cfg(feature = "client")]
pub mod client {
use wayland_client;
use wayland_client::protocol::*;
pub mod __interfaces {
use wayland_client::protocol::__interfaces::*;
wayland_scanner::generate_interfaces!("../../protocols/ferese-effects-v1.xml");
}
use self::__interfaces::*;
wayland_scanner::generate_client_code!("../../protocols/ferese-effects-v1.xml");
}
#[cfg(feature = "server")]
pub mod server {
use wayland_server;
use wayland_server::protocol::*;
pub mod __interfaces {
use wayland_server::protocol::__interfaces::*;
wayland_scanner::generate_interfaces!("../../protocols/ferese-effects-v1.xml");
}
use self::__interfaces::*;
wayland_scanner::generate_server_code!("../../protocols/ferese-effects-v1.xml");
}
}
}
}
/// Application dialog material protocol.
pub mod material {
/// Version 1 of the application dialog material protocol.
pub mod v1 {
#[cfg(feature = "client")]
pub use generated::client;
#[cfg(feature = "server")]
pub use generated::server;
mod generated {
#![allow(
dead_code,
non_camel_case_types,
non_upper_case_globals,
non_snake_case,
unused_imports,
unused_unsafe,
unused_variables,
clippy::all
)]
#[cfg(feature = "client")]
pub mod client {
use wayland_client;
use wayland_client::protocol::*;
pub mod __interfaces {
use wayland_client::protocol::__interfaces::*;
wayland_scanner::generate_interfaces!("../../protocols/ferese-material-v1.xml");
}
use self::__interfaces::*;
wayland_scanner::generate_client_code!("../../protocols/ferese-material-v1.xml");
}
#[cfg(feature = "server")]
pub mod server {
use wayland_server;
use wayland_server::protocol::*;
pub mod __interfaces {
use wayland_server::protocol::__interfaces::*;
wayland_scanner::generate_interfaces!("../../protocols/ferese-material-v1.xml");
}
use self::__interfaces::*;
wayland_scanner::generate_server_code!("../../protocols/ferese-material-v1.xml");
}
}
}
}
/// Private shell control and managed-window metadata protocol.
pub mod shell {
/// Version 1 of the Ferese shell control protocol.
pub mod v1 {
#[cfg(feature = "client")]
pub use generated::client;
#[cfg(feature = "server")]
pub use generated::server;
mod generated {
#![allow(
dead_code,
non_camel_case_types,
non_upper_case_globals,
non_snake_case,
unused_imports,
unused_unsafe,
unused_variables,
clippy::all
)]
#[cfg(feature = "client")]
pub mod client {
use wayland_client;
use wayland_client::protocol::*;
pub mod __interfaces {
use wayland_client::protocol::__interfaces::*;
wayland_scanner::generate_interfaces!("../../protocols/ferese-shell-v1.xml");
}
use self::__interfaces::*;
wayland_scanner::generate_client_code!("../../protocols/ferese-shell-v1.xml");
}
#[cfg(feature = "server")]
pub mod server {
use wayland_server;
use wayland_server::protocol::*;
pub mod __interfaces {
use wayland_server::protocol::__interfaces::*;
wayland_scanner::generate_interfaces!("../../protocols/ferese-shell-v1.xml");
}
use self::__interfaces::*;
wayland_scanner::generate_server_code!("../../protocols/ferese-shell-v1.xml");
}
}
}
}
/// Private native portal window capture protocol.
pub mod window_capture {
/// Version 1 of the native portal window capture protocol.
pub mod v1 {
#[cfg(feature = "client")]
pub use generated::client;
#[cfg(feature = "server")]
pub use generated::server;
mod generated {
#![allow(
dead_code,
non_camel_case_types,
non_upper_case_globals,
non_snake_case,
unused_imports,
unused_unsafe,
unused_variables,
clippy::all
)]
#[cfg(feature = "client")]
pub mod client {
use wayland_client;
use wayland_client::protocol::*;
use wayland_protocols::ext::image_capture_source::v1::client::*;
use wayland_protocols_wlr::screencopy::v1::client::*;
pub mod __interfaces {
use wayland_client::protocol::__interfaces::*;
use wayland_protocols::ext::image_capture_source::v1::client::__interfaces::*;
use wayland_protocols_wlr::screencopy::v1::client::__interfaces::*;
wayland_scanner::generate_interfaces!(
"../../protocols/ferese-window-capture-v1.xml"
);
}
use self::__interfaces::*;
wayland_scanner::generate_client_code!(
"../../protocols/ferese-window-capture-v1.xml"
);
}
#[cfg(feature = "server")]
pub mod server {
use wayland_protocols::ext::image_capture_source::v1::server::*;
use wayland_protocols_wlr::screencopy::v1::server::*;
use wayland_server;
use wayland_server::protocol::*;
pub mod __interfaces {
use wayland_protocols::ext::image_capture_source::v1::server::__interfaces::*;
use wayland_protocols_wlr::screencopy::v1::server::__interfaces::*;
use wayland_server::protocol::__interfaces::*;
wayland_scanner::generate_interfaces!(
"../../protocols/ferese-window-capture-v1.xml"
);
}
use self::__interfaces::*;
wayland_scanner::generate_server_code!(
"../../protocols/ferese-window-capture-v1.xml"
);
}
}
}
}