summaryrefslogtreecommitdiff
path: root/src/river_protocols.rs
diff options
context:
space:
mode:
authorMax Verevkin <maxxverrr@gmail.com>2022-04-01 21:50:19 +0300
committerMax Verevkin <maxxverrr@gmail.com>2022-04-01 21:50:19 +0300
commit7bcaa341b8685ba411d206c1a89dc3ca77aa71bb (patch)
tree917dec11c47ce71fe9486e56f94015bd12c496b7 /src/river_protocols.rs
downloadi3bar-mango-7bcaa341b8685ba411d206c1a89dc3ca77aa71bb.tar.gz
initial commit
Diffstat (limited to 'src/river_protocols.rs')
-rw-r--r--src/river_protocols.rs35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/river_protocols.rs b/src/river_protocols.rs
new file mode 100644
index 0000000..0c77823
--- /dev/null
+++ b/src/river_protocols.rs
@@ -0,0 +1,35 @@
+pub use generated::client1::*;
+pub use generated::client2::*;
+
+mod generated {
+ // The generated code tends to trigger a lot of warnings
+ // so we isolate it into a very permissive module
+ #![allow(dead_code, non_camel_case_types, unused_unsafe, unused_variables)]
+ #![allow(non_upper_case_globals, non_snake_case, unused_imports)]
+
+ pub mod client1 {
+ // These imports are used by the generated code
+ pub(crate) use smithay_client_toolkit::reexports::client as wayland_client;
+ pub(crate) use wayland_client::protocol::*;
+ pub(crate) use wayland_client::sys;
+ pub(crate) use wayland_client::{AnonymousObject, Attached, Main, Proxy, ProxyMap};
+ pub(crate) use wayland_commons::map::{Object, ObjectMetadata};
+ pub(crate) use wayland_commons::smallvec;
+ pub(crate) use wayland_commons::wire::{Argument, ArgumentType, Message, MessageDesc};
+ pub(crate) use wayland_commons::{Interface, MessageGroup};
+ include!(concat!(env!("OUT_DIR"), "/river-status-unstable-v1.rs"));
+ }
+
+ pub mod client2 {
+ // These imports are used by the generated code
+ pub(crate) use smithay_client_toolkit::reexports::client as wayland_client;
+ pub(crate) use wayland_client::protocol::*;
+ pub(crate) use wayland_client::sys;
+ pub(crate) use wayland_client::{AnonymousObject, Attached, Main, Proxy, ProxyMap};
+ pub(crate) use wayland_commons::map::{Object, ObjectMetadata};
+ pub(crate) use wayland_commons::smallvec;
+ pub(crate) use wayland_commons::wire::{Argument, ArgumentType, Message, MessageDesc};
+ pub(crate) use wayland_commons::{Interface, MessageGroup};
+ include!(concat!(env!("OUT_DIR"), "/river-control-unstable-v1.rs"));
+ }
+}