1 /* Generated by wayland-scanner 1.22.0 */
2 
3 #ifndef XDG_FOREIGN_UNSTABLE_V2_CLIENT_PROTOCOL_H
4 #define XDG_FOREIGN_UNSTABLE_V2_CLIENT_PROTOCOL_H
5 
6 #include <stdint.h>
7 #include <stddef.h>
8 #include "wayland-client.h"
9 
10 #ifdef  __cplusplus
11 extern "C" {
12 #endif
13 
14 /**
15  * @page page_xdg_foreign_unstable_v2 The xdg_foreign_unstable_v2 protocol
16  * Protocol for exporting xdg surface handles
17  *
18  * @section page_desc_xdg_foreign_unstable_v2 Description
19  *
20  * This protocol specifies a way for making it possible to reference a surface
21  * of a different client. With such a reference, a client can, by using the
22  * interfaces provided by this protocol, manipulate the relationship between
23  * its own surfaces and the surface of some other client. For example, stack
24  * some of its own surface above the other clients surface.
25  *
26  * In order for a client A to get a reference of a surface of client B, client
27  * B must first export its surface using xdg_exporter.export_toplevel. Upon
28  * doing this, client B will receive a handle (a unique string) that it may
29  * share with client A in some way (for example D-Bus). After client A has
30  * received the handle from client B, it may use xdg_importer.import_toplevel
31  * to create a reference to the surface client B just exported. See the
32  * corresponding requests for details.
33  *
34  * A possible use case for this is out-of-process dialogs. For example when a
35  * sandboxed client without file system access needs the user to select a file
36  * on the file system, given sandbox environment support, it can export its
37  * surface, passing the exported surface handle to an unsandboxed process that
38  * can show a file browser dialog and stack it above the sandboxed client's
39  * surface.
40  *
41  * Warning! The protocol described in this file is experimental and backward
42  * incompatible changes may be made. Backward compatible changes may be added
43  * together with the corresponding interface version bump. Backward
44  * incompatible changes are done by bumping the version number in the protocol
45  * and interface names and resetting the interface version. Once the protocol
46  * is to be declared stable, the 'z' prefix and the version number in the
47  * protocol and interface names are removed and the interface version number is
48  * reset.
49  *
50  * @section page_ifaces_xdg_foreign_unstable_v2 Interfaces
51  * - @subpage page_iface_zxdg_exporter_v2 - interface for exporting surfaces
52  * - @subpage page_iface_zxdg_importer_v2 - interface for importing surfaces
53  * - @subpage page_iface_zxdg_exported_v2 - an exported surface handle
54  * - @subpage page_iface_zxdg_imported_v2 - an imported surface handle
55  * @section page_copyright_xdg_foreign_unstable_v2 Copyright
56  * <pre>
57  *
58  * Copyright © 2015-2016 Red Hat Inc.
59  *
60  * Permission is hereby granted, free of charge, to any person obtaining a
61  * copy of this software and associated documentation files (the "Software"),
62  * to deal in the Software without restriction, including without limitation
63  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
64  * and/or sell copies of the Software, and to permit persons to whom the
65  * Software is furnished to do so, subject to the following conditions:
66  *
67  * The above copyright notice and this permission notice (including the next
68  * paragraph) shall be included in all copies or substantial portions of the
69  * Software.
70  *
71  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
72  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
73  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
74  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
75  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
76  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
77  * DEALINGS IN THE SOFTWARE.
78  * </pre>
79  */
80 struct wl_surface;
81 struct zxdg_exported_v2;
82 struct zxdg_exporter_v2;
83 struct zxdg_imported_v2;
84 struct zxdg_importer_v2;
85 
86 #ifndef ZXDG_EXPORTER_V2_INTERFACE
87 #define ZXDG_EXPORTER_V2_INTERFACE
88 /**
89  * @page page_iface_zxdg_exporter_v2 zxdg_exporter_v2
90  * @section page_iface_zxdg_exporter_v2_desc Description
91  *
92  * A global interface used for exporting surfaces that can later be imported
93  * using xdg_importer.
94  * @section page_iface_zxdg_exporter_v2_api API
95  * See @ref iface_zxdg_exporter_v2.
96  */
97 /**
98  * @defgroup iface_zxdg_exporter_v2 The zxdg_exporter_v2 interface
99  *
100  * A global interface used for exporting surfaces that can later be imported
101  * using xdg_importer.
102  */
103 extern const struct wl_interface zxdg_exporter_v2_interface;
104 #endif
105 #ifndef ZXDG_IMPORTER_V2_INTERFACE
106 #define ZXDG_IMPORTER_V2_INTERFACE
107 /**
108  * @page page_iface_zxdg_importer_v2 zxdg_importer_v2
109  * @section page_iface_zxdg_importer_v2_desc Description
110  *
111  * A global interface used for importing surfaces exported by xdg_exporter.
112  * With this interface, a client can create a reference to a surface of
113  * another client.
114  * @section page_iface_zxdg_importer_v2_api API
115  * See @ref iface_zxdg_importer_v2.
116  */
117 /**
118  * @defgroup iface_zxdg_importer_v2 The zxdg_importer_v2 interface
119  *
120  * A global interface used for importing surfaces exported by xdg_exporter.
121  * With this interface, a client can create a reference to a surface of
122  * another client.
123  */
124 extern const struct wl_interface zxdg_importer_v2_interface;
125 #endif
126 #ifndef ZXDG_EXPORTED_V2_INTERFACE
127 #define ZXDG_EXPORTED_V2_INTERFACE
128 /**
129  * @page page_iface_zxdg_exported_v2 zxdg_exported_v2
130  * @section page_iface_zxdg_exported_v2_desc Description
131  *
132  * An xdg_exported object represents an exported reference to a surface. The
133  * exported surface may be referenced as long as the xdg_exported object not
134  * destroyed. Destroying the xdg_exported invalidates any relationship the
135  * importer may have established using xdg_imported.
136  * @section page_iface_zxdg_exported_v2_api API
137  * See @ref iface_zxdg_exported_v2.
138  */
139 /**
140  * @defgroup iface_zxdg_exported_v2 The zxdg_exported_v2 interface
141  *
142  * An xdg_exported object represents an exported reference to a surface. The
143  * exported surface may be referenced as long as the xdg_exported object not
144  * destroyed. Destroying the xdg_exported invalidates any relationship the
145  * importer may have established using xdg_imported.
146  */
147 extern const struct wl_interface zxdg_exported_v2_interface;
148 #endif
149 #ifndef ZXDG_IMPORTED_V2_INTERFACE
150 #define ZXDG_IMPORTED_V2_INTERFACE
151 /**
152  * @page page_iface_zxdg_imported_v2 zxdg_imported_v2
153  * @section page_iface_zxdg_imported_v2_desc Description
154  *
155  * An xdg_imported object represents an imported reference to surface exported
156  * by some client. A client can use this interface to manipulate
157  * relationships between its own surfaces and the imported surface.
158  * @section page_iface_zxdg_imported_v2_api API
159  * See @ref iface_zxdg_imported_v2.
160  */
161 /**
162  * @defgroup iface_zxdg_imported_v2 The zxdg_imported_v2 interface
163  *
164  * An xdg_imported object represents an imported reference to surface exported
165  * by some client. A client can use this interface to manipulate
166  * relationships between its own surfaces and the imported surface.
167  */
168 extern const struct wl_interface zxdg_imported_v2_interface;
169 #endif
170 
171 #ifndef ZXDG_EXPORTER_V2_ERROR_ENUM
172 #define ZXDG_EXPORTER_V2_ERROR_ENUM
173 /**
174  * @ingroup iface_zxdg_exporter_v2
175  * error values
176  *
177  * These errors can be emitted in response to invalid xdg_exporter
178  * requests.
179  */
180 enum zxdg_exporter_v2_error {
181 	/**
182 	 * surface is not an xdg_toplevel
183 	 */
184 	ZXDG_EXPORTER_V2_ERROR_INVALID_SURFACE = 0,
185 };
186 #endif /* ZXDG_EXPORTER_V2_ERROR_ENUM */
187 
188 #define ZXDG_EXPORTER_V2_DESTROY 0
189 #define ZXDG_EXPORTER_V2_EXPORT_TOPLEVEL 1
190 
191 
192 /**
193  * @ingroup iface_zxdg_exporter_v2
194  */
195 #define ZXDG_EXPORTER_V2_DESTROY_SINCE_VERSION 1
196 /**
197  * @ingroup iface_zxdg_exporter_v2
198  */
199 #define ZXDG_EXPORTER_V2_EXPORT_TOPLEVEL_SINCE_VERSION 1
200 
201 /** @ingroup iface_zxdg_exporter_v2 */
202 static inline void
zxdg_exporter_v2_set_user_data(struct zxdg_exporter_v2 * zxdg_exporter_v2,void * user_data)203 zxdg_exporter_v2_set_user_data(struct zxdg_exporter_v2 *zxdg_exporter_v2, void *user_data)
204 {
205 	wl_proxy_set_user_data((struct wl_proxy *) zxdg_exporter_v2, user_data);
206 }
207 
208 /** @ingroup iface_zxdg_exporter_v2 */
209 static inline void *
zxdg_exporter_v2_get_user_data(struct zxdg_exporter_v2 * zxdg_exporter_v2)210 zxdg_exporter_v2_get_user_data(struct zxdg_exporter_v2 *zxdg_exporter_v2)
211 {
212 	return wl_proxy_get_user_data((struct wl_proxy *) zxdg_exporter_v2);
213 }
214 
215 static inline uint32_t
zxdg_exporter_v2_get_version(struct zxdg_exporter_v2 * zxdg_exporter_v2)216 zxdg_exporter_v2_get_version(struct zxdg_exporter_v2 *zxdg_exporter_v2)
217 {
218 	return wl_proxy_get_version((struct wl_proxy *) zxdg_exporter_v2);
219 }
220 
221 /**
222  * @ingroup iface_zxdg_exporter_v2
223  *
224  * Notify the compositor that the xdg_exporter object will no longer be
225  * used.
226  */
227 static inline void
zxdg_exporter_v2_destroy(struct zxdg_exporter_v2 * zxdg_exporter_v2)228 zxdg_exporter_v2_destroy(struct zxdg_exporter_v2 *zxdg_exporter_v2)
229 {
230 	wl_proxy_marshal_flags((struct wl_proxy *) zxdg_exporter_v2,
231 			 ZXDG_EXPORTER_V2_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zxdg_exporter_v2), WL_MARSHAL_FLAG_DESTROY);
232 }
233 
234 /**
235  * @ingroup iface_zxdg_exporter_v2
236  *
237  * The export_toplevel request exports the passed surface so that it can later be
238  * imported via xdg_importer. When called, a new xdg_exported object will
239  * be created and xdg_exported.handle will be sent immediately. See the
240  * corresponding interface and event for details.
241  *
242  * A surface may be exported multiple times, and each exported handle may
243  * be used to create an xdg_imported multiple times. Only xdg_toplevel
244  * equivalent surfaces may be exported, otherwise an invalid_surface
245  * protocol error is sent.
246  */
247 static inline struct zxdg_exported_v2 *
zxdg_exporter_v2_export_toplevel(struct zxdg_exporter_v2 * zxdg_exporter_v2,struct wl_surface * surface)248 zxdg_exporter_v2_export_toplevel(struct zxdg_exporter_v2 *zxdg_exporter_v2, struct wl_surface *surface)
249 {
250 	struct wl_proxy *id;
251 
252 	id = wl_proxy_marshal_flags((struct wl_proxy *) zxdg_exporter_v2,
253 			 ZXDG_EXPORTER_V2_EXPORT_TOPLEVEL, &zxdg_exported_v2_interface, wl_proxy_get_version((struct wl_proxy *) zxdg_exporter_v2), 0, NULL, surface);
254 
255 	return (struct zxdg_exported_v2 *) id;
256 }
257 
258 #define ZXDG_IMPORTER_V2_DESTROY 0
259 #define ZXDG_IMPORTER_V2_IMPORT_TOPLEVEL 1
260 
261 
262 /**
263  * @ingroup iface_zxdg_importer_v2
264  */
265 #define ZXDG_IMPORTER_V2_DESTROY_SINCE_VERSION 1
266 /**
267  * @ingroup iface_zxdg_importer_v2
268  */
269 #define ZXDG_IMPORTER_V2_IMPORT_TOPLEVEL_SINCE_VERSION 1
270 
271 /** @ingroup iface_zxdg_importer_v2 */
272 static inline void
zxdg_importer_v2_set_user_data(struct zxdg_importer_v2 * zxdg_importer_v2,void * user_data)273 zxdg_importer_v2_set_user_data(struct zxdg_importer_v2 *zxdg_importer_v2, void *user_data)
274 {
275 	wl_proxy_set_user_data((struct wl_proxy *) zxdg_importer_v2, user_data);
276 }
277 
278 /** @ingroup iface_zxdg_importer_v2 */
279 static inline void *
zxdg_importer_v2_get_user_data(struct zxdg_importer_v2 * zxdg_importer_v2)280 zxdg_importer_v2_get_user_data(struct zxdg_importer_v2 *zxdg_importer_v2)
281 {
282 	return wl_proxy_get_user_data((struct wl_proxy *) zxdg_importer_v2);
283 }
284 
285 static inline uint32_t
zxdg_importer_v2_get_version(struct zxdg_importer_v2 * zxdg_importer_v2)286 zxdg_importer_v2_get_version(struct zxdg_importer_v2 *zxdg_importer_v2)
287 {
288 	return wl_proxy_get_version((struct wl_proxy *) zxdg_importer_v2);
289 }
290 
291 /**
292  * @ingroup iface_zxdg_importer_v2
293  *
294  * Notify the compositor that the xdg_importer object will no longer be
295  * used.
296  */
297 static inline void
zxdg_importer_v2_destroy(struct zxdg_importer_v2 * zxdg_importer_v2)298 zxdg_importer_v2_destroy(struct zxdg_importer_v2 *zxdg_importer_v2)
299 {
300 	wl_proxy_marshal_flags((struct wl_proxy *) zxdg_importer_v2,
301 			 ZXDG_IMPORTER_V2_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zxdg_importer_v2), WL_MARSHAL_FLAG_DESTROY);
302 }
303 
304 /**
305  * @ingroup iface_zxdg_importer_v2
306  *
307  * The import_toplevel request imports a surface from any client given a handle
308  * retrieved by exporting said surface using xdg_exporter.export_toplevel.
309  * When called, a new xdg_imported object will be created. This new object
310  * represents the imported surface, and the importing client can
311  * manipulate its relationship using it. See xdg_imported for details.
312  */
313 static inline struct zxdg_imported_v2 *
zxdg_importer_v2_import_toplevel(struct zxdg_importer_v2 * zxdg_importer_v2,const char * handle)314 zxdg_importer_v2_import_toplevel(struct zxdg_importer_v2 *zxdg_importer_v2, const char *handle)
315 {
316 	struct wl_proxy *id;
317 
318 	id = wl_proxy_marshal_flags((struct wl_proxy *) zxdg_importer_v2,
319 			 ZXDG_IMPORTER_V2_IMPORT_TOPLEVEL, &zxdg_imported_v2_interface, wl_proxy_get_version((struct wl_proxy *) zxdg_importer_v2), 0, NULL, handle);
320 
321 	return (struct zxdg_imported_v2 *) id;
322 }
323 
324 /**
325  * @ingroup iface_zxdg_exported_v2
326  * @struct zxdg_exported_v2_listener
327  */
328 struct zxdg_exported_v2_listener {
329 	/**
330 	 * the exported surface handle
331 	 *
332 	 * The handle event contains the unique handle of this exported
333 	 * surface reference. It may be shared with any client, which then
334 	 * can use it to import the surface by calling
335 	 * xdg_importer.import_toplevel. A handle may be used to import the
336 	 * surface multiple times.
337 	 * @param handle the exported surface handle
338 	 */
339 	void (*handle)(void *data,
340 		       struct zxdg_exported_v2 *zxdg_exported_v2,
341 		       const char *handle);
342 };
343 
344 /**
345  * @ingroup iface_zxdg_exported_v2
346  */
347 static inline int
zxdg_exported_v2_add_listener(struct zxdg_exported_v2 * zxdg_exported_v2,const struct zxdg_exported_v2_listener * listener,void * data)348 zxdg_exported_v2_add_listener(struct zxdg_exported_v2 *zxdg_exported_v2,
349 			      const struct zxdg_exported_v2_listener *listener, void *data)
350 {
351 	return wl_proxy_add_listener((struct wl_proxy *) zxdg_exported_v2,
352 				     (void (**)(void)) listener, data);
353 }
354 
355 #define ZXDG_EXPORTED_V2_DESTROY 0
356 
357 /**
358  * @ingroup iface_zxdg_exported_v2
359  */
360 #define ZXDG_EXPORTED_V2_HANDLE_SINCE_VERSION 1
361 
362 /**
363  * @ingroup iface_zxdg_exported_v2
364  */
365 #define ZXDG_EXPORTED_V2_DESTROY_SINCE_VERSION 1
366 
367 /** @ingroup iface_zxdg_exported_v2 */
368 static inline void
zxdg_exported_v2_set_user_data(struct zxdg_exported_v2 * zxdg_exported_v2,void * user_data)369 zxdg_exported_v2_set_user_data(struct zxdg_exported_v2 *zxdg_exported_v2, void *user_data)
370 {
371 	wl_proxy_set_user_data((struct wl_proxy *) zxdg_exported_v2, user_data);
372 }
373 
374 /** @ingroup iface_zxdg_exported_v2 */
375 static inline void *
zxdg_exported_v2_get_user_data(struct zxdg_exported_v2 * zxdg_exported_v2)376 zxdg_exported_v2_get_user_data(struct zxdg_exported_v2 *zxdg_exported_v2)
377 {
378 	return wl_proxy_get_user_data((struct wl_proxy *) zxdg_exported_v2);
379 }
380 
381 static inline uint32_t
zxdg_exported_v2_get_version(struct zxdg_exported_v2 * zxdg_exported_v2)382 zxdg_exported_v2_get_version(struct zxdg_exported_v2 *zxdg_exported_v2)
383 {
384 	return wl_proxy_get_version((struct wl_proxy *) zxdg_exported_v2);
385 }
386 
387 /**
388  * @ingroup iface_zxdg_exported_v2
389  *
390  * Revoke the previously exported surface. This invalidates any
391  * relationship the importer may have set up using the xdg_imported created
392  * given the handle sent via xdg_exported.handle.
393  */
394 static inline void
zxdg_exported_v2_destroy(struct zxdg_exported_v2 * zxdg_exported_v2)395 zxdg_exported_v2_destroy(struct zxdg_exported_v2 *zxdg_exported_v2)
396 {
397 	wl_proxy_marshal_flags((struct wl_proxy *) zxdg_exported_v2,
398 			 ZXDG_EXPORTED_V2_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zxdg_exported_v2), WL_MARSHAL_FLAG_DESTROY);
399 }
400 
401 #ifndef ZXDG_IMPORTED_V2_ERROR_ENUM
402 #define ZXDG_IMPORTED_V2_ERROR_ENUM
403 /**
404  * @ingroup iface_zxdg_imported_v2
405  * error values
406  *
407  * These errors can be emitted in response to invalid xdg_imported
408  * requests.
409  */
410 enum zxdg_imported_v2_error {
411 	/**
412 	 * surface is not an xdg_toplevel
413 	 */
414 	ZXDG_IMPORTED_V2_ERROR_INVALID_SURFACE = 0,
415 };
416 #endif /* ZXDG_IMPORTED_V2_ERROR_ENUM */
417 
418 /**
419  * @ingroup iface_zxdg_imported_v2
420  * @struct zxdg_imported_v2_listener
421  */
422 struct zxdg_imported_v2_listener {
423 	/**
424 	 * the imported surface handle has been destroyed
425 	 *
426 	 * The imported surface handle has been destroyed and any
427 	 * relationship set up has been invalidated. This may happen for
428 	 * various reasons, for example if the exported surface or the
429 	 * exported surface handle has been destroyed, if the handle used
430 	 * for importing was invalid.
431 	 */
432 	void (*destroyed)(void *data,
433 			  struct zxdg_imported_v2 *zxdg_imported_v2);
434 };
435 
436 /**
437  * @ingroup iface_zxdg_imported_v2
438  */
439 static inline int
zxdg_imported_v2_add_listener(struct zxdg_imported_v2 * zxdg_imported_v2,const struct zxdg_imported_v2_listener * listener,void * data)440 zxdg_imported_v2_add_listener(struct zxdg_imported_v2 *zxdg_imported_v2,
441 			      const struct zxdg_imported_v2_listener *listener, void *data)
442 {
443 	return wl_proxy_add_listener((struct wl_proxy *) zxdg_imported_v2,
444 				     (void (**)(void)) listener, data);
445 }
446 
447 #define ZXDG_IMPORTED_V2_DESTROY 0
448 #define ZXDG_IMPORTED_V2_SET_PARENT_OF 1
449 
450 /**
451  * @ingroup iface_zxdg_imported_v2
452  */
453 #define ZXDG_IMPORTED_V2_DESTROYED_SINCE_VERSION 1
454 
455 /**
456  * @ingroup iface_zxdg_imported_v2
457  */
458 #define ZXDG_IMPORTED_V2_DESTROY_SINCE_VERSION 1
459 /**
460  * @ingroup iface_zxdg_imported_v2
461  */
462 #define ZXDG_IMPORTED_V2_SET_PARENT_OF_SINCE_VERSION 1
463 
464 /** @ingroup iface_zxdg_imported_v2 */
465 static inline void
zxdg_imported_v2_set_user_data(struct zxdg_imported_v2 * zxdg_imported_v2,void * user_data)466 zxdg_imported_v2_set_user_data(struct zxdg_imported_v2 *zxdg_imported_v2, void *user_data)
467 {
468 	wl_proxy_set_user_data((struct wl_proxy *) zxdg_imported_v2, user_data);
469 }
470 
471 /** @ingroup iface_zxdg_imported_v2 */
472 static inline void *
zxdg_imported_v2_get_user_data(struct zxdg_imported_v2 * zxdg_imported_v2)473 zxdg_imported_v2_get_user_data(struct zxdg_imported_v2 *zxdg_imported_v2)
474 {
475 	return wl_proxy_get_user_data((struct wl_proxy *) zxdg_imported_v2);
476 }
477 
478 static inline uint32_t
zxdg_imported_v2_get_version(struct zxdg_imported_v2 * zxdg_imported_v2)479 zxdg_imported_v2_get_version(struct zxdg_imported_v2 *zxdg_imported_v2)
480 {
481 	return wl_proxy_get_version((struct wl_proxy *) zxdg_imported_v2);
482 }
483 
484 /**
485  * @ingroup iface_zxdg_imported_v2
486  *
487  * Notify the compositor that it will no longer use the xdg_imported
488  * object. Any relationship that may have been set up will at this point
489  * be invalidated.
490  */
491 static inline void
zxdg_imported_v2_destroy(struct zxdg_imported_v2 * zxdg_imported_v2)492 zxdg_imported_v2_destroy(struct zxdg_imported_v2 *zxdg_imported_v2)
493 {
494 	wl_proxy_marshal_flags((struct wl_proxy *) zxdg_imported_v2,
495 			 ZXDG_IMPORTED_V2_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zxdg_imported_v2), WL_MARSHAL_FLAG_DESTROY);
496 }
497 
498 /**
499  * @ingroup iface_zxdg_imported_v2
500  *
501  * Set the imported surface as the parent of some surface of the client.
502  * The passed surface must be an xdg_toplevel equivalent, otherwise an
503  * invalid_surface protocol error is sent. Calling this function sets up
504  * a surface to surface relation with the same stacking and positioning
505  * semantics as xdg_toplevel.set_parent.
506  */
507 static inline void
zxdg_imported_v2_set_parent_of(struct zxdg_imported_v2 * zxdg_imported_v2,struct wl_surface * surface)508 zxdg_imported_v2_set_parent_of(struct zxdg_imported_v2 *zxdg_imported_v2, struct wl_surface *surface)
509 {
510 	wl_proxy_marshal_flags((struct wl_proxy *) zxdg_imported_v2,
511 			 ZXDG_IMPORTED_V2_SET_PARENT_OF, NULL, wl_proxy_get_version((struct wl_proxy *) zxdg_imported_v2), 0, surface);
512 }
513 
514 #ifdef  __cplusplus
515 }
516 #endif
517 
518 #endif
519