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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
//! This crate provides bindings to the plasma wayland protocol extensions
//! provided in <https://github.com/KDE/plasma-wayland-protocols>
//!
//! These bindings are built on top of the crates wayland-client and wayland-server.
//!
//! Each protocol module contains a `client` and a `server` submodules, for each side of the
//! protocol. The creation of these modules (and the dependency on the associated crate) is
//! controlled by the two cargo features `client` and `server`.

#![forbid(improper_ctypes, unsafe_op_in_unsafe_fn)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(rustfmt, rustfmt_skip)]

#[macro_use]
mod protocol_macro;

pub mod appmenu {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/appmenu.xml",
        []
    );
}

pub mod blur {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/blur.xml",
        []
    );
}

pub mod contrast {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/contrast.xml",
        []
    );
}

pub mod dpms {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/dpms.xml",
        []
    );
}

pub mod fake_input {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/fake-input.xml",
        []
    );
}

// This protocol is disabled for now as the file is not valid XML because it does not have a XML header
//
// pub mod fullscreen_shell {
//     wayland_protocol!(
//         "./plasma-wayland-protocols/src/protocols/fullscreen-shell.xml",
//         []
//     );
// }

pub mod idle {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/idle.xml",
        []
    );
}

pub mod keystate {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/keystate.xml",
        []
    );
}

pub mod output_device {
    pub mod v1 {
        wayland_protocol!(
            "./plasma-wayland-protocols/src/protocols/outputdevice.xml",
            []
        );
    }

    pub mod v2 {
        wayland_protocol!(
            "./plasma-wayland-protocols/src/protocols/kde-output-device-v2.xml",
            []
        );
    }
}

pub mod output_management {
    pub mod v1 {
        wayland_protocol!(
            "./plasma-wayland-protocols/src/protocols/output-management.xml",
            [crate::output_device::v1]
        );
    }

    pub mod v2 {
        wayland_protocol!(
            "./plasma-wayland-protocols/src/protocols/kde-output-management-v2.xml",
            [crate::output_device::v2]
        );
    }
}


pub mod primary_output {
    pub mod v1 {
        wayland_protocol!(
            "./plasma-wayland-protocols/src/protocols/kde-primary-output-v1.xml",
            []
        );
    }
}

pub mod plasma_shell {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/plasma-shell.xml",
        []
    );
}

pub mod plasma_virtual_desktop {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/plasma-virtual-desktop.xml",
        []
    );
}

pub mod plasma_window_management {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/plasma-window-management.xml",
        []
    );
}

pub mod remote_access {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/remote-access.xml",
        []
    );
}

pub mod screencast {
    pub mod v1 {
        wayland_protocol!(
            "./plasma-wayland-protocols/src/protocols/zkde-screencast-unstable-v1.xml",
            []
        );
    }
}

pub mod server_decoration_palette {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/server-decoration-palette.xml",
        []
    );
}

pub mod server_decoration {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/server-decoration.xml",
        []
    );
}

pub mod shadow {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/shadow.xml",
        []
    );
}

pub mod slide {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/slide.xml",
        []
    );
}

// This protocol is disabled for now as the file is not valid XML because it does not have a XML header
//
// pub mod surface_extension {
//     wayland_protocol!(
//         "./plasma-wayland-protocols/src/protocols/surface-extension.xml",
//         []
//     );
// }

pub mod text_input {
    pub mod v1 {
        wayland_protocol!(
            "./plasma-wayland-protocols/src/protocols/text-input.xml",
            []
        );
    }

    pub mod v2 {
        wayland_protocol!(
            "./plasma-wayland-protocols/src/protocols/text-input-unstable-v2.xml",
            []
        );
    }
}

pub mod wayland_eglstream_controller {
    wayland_protocol!(
        "./plasma-wayland-protocols/src/protocols/wayland-eglstream-controller.xml",
        []
    );
}