summaryrefslogtreecommitdiff
path: root/src/river_protocols.rs
blob: 0c77823a3c8d822285cfbe0b7434dbdab27db67e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"));
    }
}