OLD | NEW |
1 /* Generated by wayland-scanner 1.11.0 */ | 1 /* Generated by wayland-scanner 1.11.0 */ |
2 | 2 |
3 #ifndef SECURE_OUTPUT_UNSTABLE_V1_SERVER_PROTOCOL_H | 3 #ifndef SECURE_OUTPUT_UNSTABLE_V1_SERVER_PROTOCOL_H |
4 #define SECURE_OUTPUT_UNSTABLE_V1_SERVER_PROTOCOL_H | 4 #define SECURE_OUTPUT_UNSTABLE_V1_SERVER_PROTOCOL_H |
5 | 5 |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include "wayland-server.h" | 8 #include "wayland-server.h" |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
(...skipping 26 matching lines...) Expand all Loading... |
37 * together with the corresponding interface version bump. Backward | 37 * together with the corresponding interface version bump. Backward |
38 * incompatible changes are done by bumping the version number in the protocol | 38 * incompatible changes are done by bumping the version number in the protocol |
39 * and interface names and resetting the interface version. Once the protocol | 39 * and interface names and resetting the interface version. Once the protocol |
40 * is to be declared stable, the 'z' prefix and the version number in the | 40 * is to be declared stable, the 'z' prefix and the version number in the |
41 * protocol and interface names are removed and the interface version number is | 41 * protocol and interface names are removed and the interface version number is |
42 * reset. | 42 * reset. |
43 * | 43 * |
44 * @section page_ifaces_secure_output_unstable_v1 Interfaces | 44 * @section page_ifaces_secure_output_unstable_v1 Interfaces |
45 * - @subpage page_iface_zcr_secure_output_v1 - secure output | 45 * - @subpage page_iface_zcr_secure_output_v1 - secure output |
46 * - @subpage page_iface_zcr_security_v1 - security interface to a wl_surface | 46 * - @subpage page_iface_zcr_security_v1 - security interface to a wl_surface |
47 * - @subpage page_iface_zwp_secure_output_v1 - DEPRECATED | |
48 * - @subpage page_iface_zwp_security_v1 - DEPRECATED | |
49 * @section page_copyright_secure_output_unstable_v1 Copyright | 47 * @section page_copyright_secure_output_unstable_v1 Copyright |
50 * <pre> | 48 * <pre> |
51 * | 49 * |
52 * Copyright 2016 The Chromium Authors. | 50 * Copyright 2016 The Chromium Authors. |
53 * | 51 * |
54 * Permission is hereby granted, free of charge, to any person obtaining a | 52 * Permission is hereby granted, free of charge, to any person obtaining a |
55 * copy of this software and associated documentation files (the "Software"), | 53 * copy of this software and associated documentation files (the "Software"), |
56 * to deal in the Software without restriction, including without limitation | 54 * to deal in the Software without restriction, including without limitation |
57 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 55 * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
58 * and/or sell copies of the Software, and to permit persons to whom the | 56 * and/or sell copies of the Software, and to permit persons to whom the |
59 * Software is furnished to do so, subject to the following conditions: | 57 * Software is furnished to do so, subject to the following conditions: |
60 * | 58 * |
61 * The above copyright notice and this permission notice (including the next | 59 * The above copyright notice and this permission notice (including the next |
62 * paragraph) shall be included in all copies or substantial portions of the | 60 * paragraph) shall be included in all copies or substantial portions of the |
63 * Software. | 61 * Software. |
64 * | 62 * |
65 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 63 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
66 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 64 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
67 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 65 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
68 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 66 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
69 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 67 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
70 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 68 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
71 * DEALINGS IN THE SOFTWARE. | 69 * DEALINGS IN THE SOFTWARE. |
72 * </pre> | 70 * </pre> |
73 */ | 71 */ |
74 struct wl_surface; | 72 struct wl_surface; |
75 struct zcr_secure_output_v1; | 73 struct zcr_secure_output_v1; |
76 struct zcr_security_v1; | 74 struct zcr_security_v1; |
77 struct zwp_secure_output_v1; | |
78 struct zwp_security_v1; | |
79 | 75 |
80 /** | 76 /** |
81 * @page page_iface_zcr_secure_output_v1 zcr_secure_output_v1 | 77 * @page page_iface_zcr_secure_output_v1 zcr_secure_output_v1 |
82 * @section page_iface_zcr_secure_output_v1_desc Description | 78 * @section page_iface_zcr_secure_output_v1_desc Description |
83 * | 79 * |
84 * The global interface exposing secure output capabilities is used | 80 * The global interface exposing secure output capabilities is used |
85 * to instantiate an interface extension for a wl_surface object. | 81 * to instantiate an interface extension for a wl_surface object. |
86 * This extended interface will then allow surfaces to be marked as | 82 * This extended interface will then allow surfaces to be marked as |
87 * as only visible on secure outputs. | 83 * as only visible on secure outputs. |
88 * @section page_iface_zcr_secure_output_v1_api API | 84 * @section page_iface_zcr_secure_output_v1_api API |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 * or be visible on non-secure outputs. | 118 * or be visible on non-secure outputs. |
123 * | 119 * |
124 * If the wl_surface associated with the security object is destroyed, | 120 * If the wl_surface associated with the security object is destroyed, |
125 * the security object becomes inert. | 121 * the security object becomes inert. |
126 * | 122 * |
127 * If the security object is destroyed, the security state is removed | 123 * If the security object is destroyed, the security state is removed |
128 * from the wl_surface. The change will be applied on the next | 124 * from the wl_surface. The change will be applied on the next |
129 * wl_surface.commit. | 125 * wl_surface.commit. |
130 */ | 126 */ |
131 extern const struct wl_interface zcr_security_v1_interface; | 127 extern const struct wl_interface zcr_security_v1_interface; |
132 /** | |
133 * @page page_iface_zwp_secure_output_v1 zwp_secure_output_v1 | |
134 * @section page_iface_zwp_secure_output_v1_desc Description | |
135 * | |
136 * The global interface exposing secure output capabilities is used | |
137 * to instantiate an interface extension for a wl_surface object. | |
138 * This extended interface will then allow surfaces to be marked as | |
139 * as only visible on secure outputs. | |
140 * @section page_iface_zwp_secure_output_v1_api API | |
141 * See @ref iface_zwp_secure_output_v1. | |
142 */ | |
143 /** | |
144 * @defgroup iface_zwp_secure_output_v1 The zwp_secure_output_v1 interface | |
145 * | |
146 * The global interface exposing secure output capabilities is used | |
147 * to instantiate an interface extension for a wl_surface object. | |
148 * This extended interface will then allow surfaces to be marked as | |
149 * as only visible on secure outputs. | |
150 */ | |
151 extern const struct wl_interface zwp_secure_output_v1_interface; | |
152 /** | |
153 * @page page_iface_zwp_security_v1 zwp_security_v1 | |
154 * @section page_iface_zwp_security_v1_desc Description | |
155 * | |
156 * An additional interface to a wl_surface object, which allows the | |
157 * client to specify that a surface should not appear in screenshots | |
158 * or be visible on non-secure outputs. | |
159 * | |
160 * If the wl_surface associated with the security object is destroyed, | |
161 * the security object becomes inert. | |
162 * | |
163 * If the security object is destroyed, the security state is removed | |
164 * from the wl_surface. The change will be applied on the next | |
165 * wl_surface.commit. | |
166 * @section page_iface_zwp_security_v1_api API | |
167 * See @ref iface_zwp_security_v1. | |
168 */ | |
169 /** | |
170 * @defgroup iface_zwp_security_v1 The zwp_security_v1 interface | |
171 * | |
172 * An additional interface to a wl_surface object, which allows the | |
173 * client to specify that a surface should not appear in screenshots | |
174 * or be visible on non-secure outputs. | |
175 * | |
176 * If the wl_surface associated with the security object is destroyed, | |
177 * the security object becomes inert. | |
178 * | |
179 * If the security object is destroyed, the security state is removed | |
180 * from the wl_surface. The change will be applied on the next | |
181 * wl_surface.commit. | |
182 */ | |
183 extern const struct wl_interface zwp_security_v1_interface; | |
184 | 128 |
185 #ifndef ZCR_SECURE_OUTPUT_V1_ERROR_ENUM | 129 #ifndef ZCR_SECURE_OUTPUT_V1_ERROR_ENUM |
186 #define ZCR_SECURE_OUTPUT_V1_ERROR_ENUM | 130 #define ZCR_SECURE_OUTPUT_V1_ERROR_ENUM |
187 enum zcr_secure_output_v1_error { | 131 enum zcr_secure_output_v1_error { |
188 /** | 132 /** |
189 * the surface already has a security object associated | 133 * the surface already has a security object associated |
190 */ | 134 */ |
191 ZCR_SECURE_OUTPUT_V1_ERROR_SECURITY_EXISTS = 0, | 135 ZCR_SECURE_OUTPUT_V1_ERROR_SECURITY_EXISTS = 0, |
192 }; | 136 }; |
193 #endif /* ZCR_SECURE_OUTPUT_V1_ERROR_ENUM */ | 137 #endif /* ZCR_SECURE_OUTPUT_V1_ERROR_ENUM */ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 * See wp_secure_output for the description. | 187 * See wp_secure_output for the description. |
244 * | 188 * |
245 * The only visible on secure output state is double-buffered | 189 * The only visible on secure output state is double-buffered |
246 * state, and will be applied on the next wl_surface.commit. | 190 * state, and will be applied on the next wl_surface.commit. |
247 */ | 191 */ |
248 void (*only_visible_on_secure_output)(struct wl_client *client, | 192 void (*only_visible_on_secure_output)(struct wl_client *client, |
249 struct wl_resource *resource); | 193 struct wl_resource *resource); |
250 }; | 194 }; |
251 | 195 |
252 | 196 |
253 #ifndef ZWP_SECURE_OUTPUT_V1_ERROR_ENUM | |
254 #define ZWP_SECURE_OUTPUT_V1_ERROR_ENUM | |
255 enum zwp_secure_output_v1_error { | |
256 /** | |
257 * the surface already has a security object associated | |
258 */ | |
259 ZWP_SECURE_OUTPUT_V1_ERROR_SECURITY_EXISTS = 0, | |
260 }; | |
261 #endif /* ZWP_SECURE_OUTPUT_V1_ERROR_ENUM */ | |
262 | |
263 /** | |
264 * @ingroup iface_zwp_secure_output_v1 | |
265 * @struct zwp_secure_output_v1_interface | |
266 */ | |
267 struct zwp_secure_output_v1_interface { | |
268 /** | |
269 * unbind from the secure output interface | |
270 * | |
271 * Informs the server that the client will not be using this | |
272 * protocol object anymore. This does not affect any other objects, | |
273 * security objects included. | |
274 */ | |
275 void (*destroy)(struct wl_client *client, | |
276 struct wl_resource *resource); | |
277 /** | |
278 * extend surface interface for security | |
279 * | |
280 * Instantiate an interface extension for the given wl_surface to | |
281 * provide surface security. If the given wl_surface already has a | |
282 * security object associated, the security_exists protocol error | |
283 * is raised. | |
284 * @param id the new security interface id | |
285 * @param surface the surface | |
286 */ | |
287 void (*get_security)(struct wl_client *client, | |
288 struct wl_resource *resource, | |
289 uint32_t id, | |
290 struct wl_resource *surface); | |
291 }; | |
292 | |
293 | |
294 /** | |
295 * @ingroup iface_zwp_security_v1 | |
296 * @struct zwp_security_v1_interface | |
297 */ | |
298 struct zwp_security_v1_interface { | |
299 /** | |
300 * remove security from the surface | |
301 * | |
302 * The associated wl_surface's security state is removed. The | |
303 * change is applied on the next wl_surface.commit. | |
304 */ | |
305 void (*destroy)(struct wl_client *client, | |
306 struct wl_resource *resource); | |
307 /** | |
308 * set the only visible on secure output state | |
309 * | |
310 * Constrain visibility of wl_surface contents to secure outputs. | |
311 * See wp_secure_output for the description. | |
312 * | |
313 * The only visible on secure output state is double-buffered | |
314 * state, and will be applied on the next wl_surface.commit. | |
315 */ | |
316 void (*only_visible_on_secure_output)(struct wl_client *client, | |
317 struct wl_resource *resource); | |
318 }; | |
319 | |
320 | |
321 #ifdef __cplusplus | 197 #ifdef __cplusplus |
322 } | 198 } |
323 #endif | 199 #endif |
324 | 200 |
325 #endif | 201 #endif |
OLD | NEW |