AtlatestRepositorysigil-ui

sigil-ui / tree / native / waylandlinux-dmabuf-v1-client-protocol.h

1/* Generated by wayland-scanner 1.24.0 */
2
3#ifndef LINUX_DMABUF_V1_CLIENT_PROTOCOL_H
4#define LINUX_DMABUF_V1_CLIENT_PROTOCOL_H
5
6#include <stdint.h>
7#include <stddef.h>
8#include "wayland-client.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
14/**
15 * @page page_linux_dmabuf_v1 The linux_dmabuf_v1 protocol
16 * @section page_ifaces_linux_dmabuf_v1 Interfaces
17 * - @subpage page_iface_zwp_linux_dmabuf_v1 - factory for creating dmabuf-based wl_buffers
18 * - @subpage page_iface_zwp_linux_buffer_params_v1 - parameters for creating a dmabuf-based wl_buffer
19 * - @subpage page_iface_zwp_linux_dmabuf_feedback_v1 - dmabuf feedback
20 * @section page_copyright_linux_dmabuf_v1 Copyright
21 * <pre>
22 *
23 * Copyright © 2014, 2015 Collabora, Ltd.
24 *
25 * Permission is hereby granted, free of charge, to any person obtaining a
26 * copy of this software and associated documentation files (the "Software"),
27 * to deal in the Software without restriction, including without limitation
28 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
29 * and/or sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following conditions:
31 *
32 * The above copyright notice and this permission notice (including the next
33 * paragraph) shall be included in all copies or substantial portions of the
34 * Software.
35 *
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
39 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
42 * DEALINGS IN THE SOFTWARE.
43 * </pre>
44 */
45struct wl_buffer;
46struct wl_surface;
47struct zwp_linux_buffer_params_v1;
48struct zwp_linux_dmabuf_feedback_v1;
49struct zwp_linux_dmabuf_v1;
51#ifndef ZWP_LINUX_DMABUF_V1_INTERFACE
52#define ZWP_LINUX_DMABUF_V1_INTERFACE
53/**
54 * @page page_iface_zwp_linux_dmabuf_v1 zwp_linux_dmabuf_v1
55 * @section page_iface_zwp_linux_dmabuf_v1_desc Description
56 *
57 * This interface offers ways to create generic dmabuf-based wl_buffers.
58 *
59 * For more information about dmabuf, see:
60 * https://www.kernel.org/doc/html/next/userspace-api/dma-buf-alloc-exchange.html
61 *
62 * Clients can use the get_surface_feedback request to get dmabuf feedback
63 * for a particular surface. If the client wants to retrieve feedback not
64 * tied to a surface, they can use the get_default_feedback request.
65 *
66 * The following are required from clients:
67 *
68 * - Clients must ensure that either all data in the dma-buf is
69 * coherent for all subsequent read access or that coherency is
70 * correctly handled by the underlying kernel-side dma-buf
71 * implementation.
72 *
73 * - Don't make any more attachments after sending the buffer to the
74 * compositor. Making more attachments later increases the risk of
75 * the compositor not being able to use (re-import) an existing
76 * dmabuf-based wl_buffer.
77 *
78 * The underlying graphics stack must ensure the following:
79 *
80 * - The dmabuf file descriptors relayed to the server will stay valid
81 * for the whole lifetime of the wl_buffer. This means the server may
82 * at any time use those fds to import the dmabuf into any kernel
83 * sub-system that might accept it.
84 *
85 * However, when the underlying graphics stack fails to deliver the
86 * promise, because of e.g. a device hot-unplug which raises internal
87 * errors, after the wl_buffer has been successfully created the
88 * compositor must not raise protocol errors to the client when dmabuf
89 * import later fails.
90 *
91 * To create a wl_buffer from one or more dmabufs, a client creates a
92 * zwp_linux_dmabuf_params_v1 object with a zwp_linux_dmabuf_v1.create_params
93 * request. All planes required by the intended format are added with
94 * the 'add' request. Finally, a 'create' or 'create_immed' request is
95 * issued, which has the following outcome depending on the import success.
96 *
97 * The 'create' request,
98 * - on success, triggers a 'created' event which provides the final
99 * wl_buffer to the client.
100 * - on failure, triggers a 'failed' event to convey that the server
101 * cannot use the dmabufs received from the client.
102 *
103 * For the 'create_immed' request,
104 * - on success, the server immediately imports the added dmabufs to
105 * create a wl_buffer. No event is sent from the server in this case.
106 * - on failure, the server can choose to either:
107 * - terminate the client by raising a fatal error.
108 * - mark the wl_buffer as failed, and send a 'failed' event to the
109 * client. If the client uses a failed wl_buffer as an argument to any
110 * request, the behaviour is compositor implementation-defined.
111 *
112 * For all DRM formats and unless specified in another protocol extension,
113 * pre-multiplied alpha is used for pixel values.
114 *
115 * Unless specified otherwise in another protocol extension, implicit
116 * synchronization is used. In other words, compositors and clients must
117 * wait and signal fences implicitly passed via the DMA-BUF's reservation
118 * mechanism.
119 * @section page_iface_zwp_linux_dmabuf_v1_api API
120 * See @ref iface_zwp_linux_dmabuf_v1.
121 */
122/**
123 * @defgroup iface_zwp_linux_dmabuf_v1 The zwp_linux_dmabuf_v1 interface
124 *
125 * This interface offers ways to create generic dmabuf-based wl_buffers.
126 *
127 * For more information about dmabuf, see:
128 * https://www.kernel.org/doc/html/next/userspace-api/dma-buf-alloc-exchange.html
129 *
130 * Clients can use the get_surface_feedback request to get dmabuf feedback
131 * for a particular surface. If the client wants to retrieve feedback not
132 * tied to a surface, they can use the get_default_feedback request.
133 *
134 * The following are required from clients:
135 *
136 * - Clients must ensure that either all data in the dma-buf is
137 * coherent for all subsequent read access or that coherency is
138 * correctly handled by the underlying kernel-side dma-buf
139 * implementation.
140 *
141 * - Don't make any more attachments after sending the buffer to the
142 * compositor. Making more attachments later increases the risk of
143 * the compositor not being able to use (re-import) an existing
144 * dmabuf-based wl_buffer.
145 *
146 * The underlying graphics stack must ensure the following:
147 *
148 * - The dmabuf file descriptors relayed to the server will stay valid
149 * for the whole lifetime of the wl_buffer. This means the server may
150 * at any time use those fds to import the dmabuf into any kernel
151 * sub-system that might accept it.
152 *
153 * However, when the underlying graphics stack fails to deliver the
154 * promise, because of e.g. a device hot-unplug which raises internal
155 * errors, after the wl_buffer has been successfully created the
156 * compositor must not raise protocol errors to the client when dmabuf
157 * import later fails.
158 *
159 * To create a wl_buffer from one or more dmabufs, a client creates a
160 * zwp_linux_dmabuf_params_v1 object with a zwp_linux_dmabuf_v1.create_params
161 * request. All planes required by the intended format are added with
162 * the 'add' request. Finally, a 'create' or 'create_immed' request is
163 * issued, which has the following outcome depending on the import success.
164 *
165 * The 'create' request,
166 * - on success, triggers a 'created' event which provides the final
167 * wl_buffer to the client.
168 * - on failure, triggers a 'failed' event to convey that the server
169 * cannot use the dmabufs received from the client.
170 *
171 * For the 'create_immed' request,
172 * - on success, the server immediately imports the added dmabufs to
173 * create a wl_buffer. No event is sent from the server in this case.
174 * - on failure, the server can choose to either:
175 * - terminate the client by raising a fatal error.
176 * - mark the wl_buffer as failed, and send a 'failed' event to the
177 * client. If the client uses a failed wl_buffer as an argument to any
178 * request, the behaviour is compositor implementation-defined.
179 *
180 * For all DRM formats and unless specified in another protocol extension,
181 * pre-multiplied alpha is used for pixel values.
182 *
183 * Unless specified otherwise in another protocol extension, implicit
184 * synchronization is used. In other words, compositors and clients must
185 * wait and signal fences implicitly passed via the DMA-BUF's reservation
186 * mechanism.
187 */
188extern const struct wl_interface zwp_linux_dmabuf_v1_interface;
189#endif
190#ifndef ZWP_LINUX_BUFFER_PARAMS_V1_INTERFACE
191#define ZWP_LINUX_BUFFER_PARAMS_V1_INTERFACE
192/**
193 * @page page_iface_zwp_linux_buffer_params_v1 zwp_linux_buffer_params_v1
194 * @section page_iface_zwp_linux_buffer_params_v1_desc Description
195 *
196 * This temporary object is a collection of dmabufs and other
197 * parameters that together form a single logical buffer. The temporary
198 * object may eventually create one wl_buffer unless cancelled by
199 * destroying it before requesting 'create'.
200 *
201 * Single-planar formats only require one dmabuf, however
202 * multi-planar formats may require more than one dmabuf. For all
203 * formats, an 'add' request must be called once per plane (even if the
204 * underlying dmabuf fd is identical).
205 *
206 * You must use consecutive plane indices ('plane_idx' argument for 'add')
207 * from zero to the number of planes used by the drm_fourcc format code.
208 * All planes required by the format must be given exactly once, but can
209 * be given in any order. Each plane index can only be set once; subsequent
210 * calls with a plane index which has already been set will result in a
211 * plane_set error being generated.
212 * @section page_iface_zwp_linux_buffer_params_v1_api API
213 * See @ref iface_zwp_linux_buffer_params_v1.
214 */
215/**
216 * @defgroup iface_zwp_linux_buffer_params_v1 The zwp_linux_buffer_params_v1 interface
217 *
218 * This temporary object is a collection of dmabufs and other
219 * parameters that together form a single logical buffer. The temporary
220 * object may eventually create one wl_buffer unless cancelled by
221 * destroying it before requesting 'create'.
222 *
223 * Single-planar formats only require one dmabuf, however
224 * multi-planar formats may require more than one dmabuf. For all
225 * formats, an 'add' request must be called once per plane (even if the
226 * underlying dmabuf fd is identical).
227 *
228 * You must use consecutive plane indices ('plane_idx' argument for 'add')
229 * from zero to the number of planes used by the drm_fourcc format code.
230 * All planes required by the format must be given exactly once, but can
231 * be given in any order. Each plane index can only be set once; subsequent
232 * calls with a plane index which has already been set will result in a
233 * plane_set error being generated.
234 */
235extern const struct wl_interface zwp_linux_buffer_params_v1_interface;
236#endif
237#ifndef ZWP_LINUX_DMABUF_FEEDBACK_V1_INTERFACE
238#define ZWP_LINUX_DMABUF_FEEDBACK_V1_INTERFACE
239/**
240 * @page page_iface_zwp_linux_dmabuf_feedback_v1 zwp_linux_dmabuf_feedback_v1
241 * @section page_iface_zwp_linux_dmabuf_feedback_v1_desc Description
242 *
243 * This object advertises dmabuf parameters feedback. This includes the
244 * preferred devices and the supported formats/modifiers.
245 *
246 * The parameters are sent once when this object is created and whenever they
247 * change. The done event is always sent once after all parameters have been
248 * sent. When a single parameter changes, all parameters are re-sent by the
249 * compositor.
250 *
251 * Compositors can re-send the parameters when the current client buffer
252 * allocations are sub-optimal. Compositors should not re-send the
253 * parameters if re-allocating the buffers would not result in a more optimal
254 * configuration. In particular, compositors should avoid sending the exact
255 * same parameters multiple times in a row.
256 *
257 * The tranche_target_device and tranche_formats events are grouped by
258 * tranches of preference. For each tranche, a tranche_target_device, one
259 * tranche_flags and one or more tranche_formats events are sent, followed
260 * by a tranche_done event finishing the list. The tranches are sent in
261 * descending order of preference. All formats and modifiers in the same
262 * tranche have the same preference.
263 *
264 * To send parameters, the compositor sends one main_device event, tranches
265 * (each consisting of one tranche_target_device event, one tranche_flags
266 * event, tranche_formats events and then a tranche_done event), then one
267 * done event.
268 * @section page_iface_zwp_linux_dmabuf_feedback_v1_api API
269 * See @ref iface_zwp_linux_dmabuf_feedback_v1.
270 */
271/**
272 * @defgroup iface_zwp_linux_dmabuf_feedback_v1 The zwp_linux_dmabuf_feedback_v1 interface
273 *
274 * This object advertises dmabuf parameters feedback. This includes the
275 * preferred devices and the supported formats/modifiers.
276 *
277 * The parameters are sent once when this object is created and whenever they
278 * change. The done event is always sent once after all parameters have been
279 * sent. When a single parameter changes, all parameters are re-sent by the
280 * compositor.
281 *
282 * Compositors can re-send the parameters when the current client buffer
283 * allocations are sub-optimal. Compositors should not re-send the
284 * parameters if re-allocating the buffers would not result in a more optimal
285 * configuration. In particular, compositors should avoid sending the exact
286 * same parameters multiple times in a row.
287 *
288 * The tranche_target_device and tranche_formats events are grouped by
289 * tranches of preference. For each tranche, a tranche_target_device, one
290 * tranche_flags and one or more tranche_formats events are sent, followed
291 * by a tranche_done event finishing the list. The tranches are sent in
292 * descending order of preference. All formats and modifiers in the same
293 * tranche have the same preference.
294 *
295 * To send parameters, the compositor sends one main_device event, tranches
296 * (each consisting of one tranche_target_device event, one tranche_flags
297 * event, tranche_formats events and then a tranche_done event), then one
298 * done event.
299 */
300extern const struct wl_interface zwp_linux_dmabuf_feedback_v1_interface;
301#endif
303/**
304 * @ingroup iface_zwp_linux_dmabuf_v1
305 * @struct zwp_linux_dmabuf_v1_listener
306 */
307struct zwp_linux_dmabuf_v1_listener {
308 /**
309 * supported buffer format
310 *
311 * This event advertises one buffer format that the server
312 * supports. All the supported formats are advertised once when the
313 * client binds to this interface. A roundtrip after binding
314 * guarantees that the client has received all supported formats.
315 *
316 * For the definition of the format codes, see the
317 * zwp_linux_buffer_params_v1::create request.
318 *
319 * Starting version 4, the format event is deprecated and must not
320 * be sent by compositors. Instead, use get_default_feedback or
321 * get_surface_feedback.
322 * @param format DRM_FORMAT code
323 * @deprecated Deprecated since version 4
324 */
325 void (*format)(void *data,
326 struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1,
327 uint32_t format);
328 /**
329 * supported buffer format modifier
330 *
331 * This event advertises the formats that the server supports,
332 * along with the modifiers supported for each format. All the
333 * supported modifiers for all the supported formats are advertised
334 * once when the client binds to this interface. A roundtrip after
335 * binding guarantees that the client has received all supported
336 * format-modifier pairs.
337 *
338 * For legacy support, DRM_FORMAT_MOD_INVALID (that is, modifier_hi
339 * == 0x00ffffff and modifier_lo == 0xffffffff) is allowed in this
340 * event. It indicates that the server can support the format with
341 * an implicit modifier. When a plane has DRM_FORMAT_MOD_INVALID as
342 * its modifier, it is as if no explicit modifier is specified. The
343 * effective modifier will be derived from the dmabuf.
344 *
345 * A compositor that sends valid modifiers and
346 * DRM_FORMAT_MOD_INVALID for a given format supports both explicit
347 * modifiers and implicit modifiers.
348 *
349 * For the definition of the format and modifier codes, see the
350 * zwp_linux_buffer_params_v1::create and
351 * zwp_linux_buffer_params_v1::add requests.
352 *
353 * Starting version 4, the modifier event is deprecated and must
354 * not be sent by compositors. Instead, use get_default_feedback or
355 * get_surface_feedback.
356 * @param format DRM_FORMAT code
357 * @param modifier_hi high 32 bits of layout modifier
358 * @param modifier_lo low 32 bits of layout modifier
359 * @since 3
360 * @deprecated Deprecated since version 4
361 */
362 void (*modifier)(void *data,
363 struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1,
364 uint32_t format,
365 uint32_t modifier_hi,
366 uint32_t modifier_lo);
367};
369/**
370 * @ingroup iface_zwp_linux_dmabuf_v1
371 */
372static inline int
373zwp_linux_dmabuf_v1_add_listener(struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1,
374 const struct zwp_linux_dmabuf_v1_listener *listener, void *data)
376 return wl_proxy_add_listener((struct wl_proxy *) zwp_linux_dmabuf_v1,
377 (void (**)(void)) listener, data);
380#define ZWP_LINUX_DMABUF_V1_DESTROY 0
381#define ZWP_LINUX_DMABUF_V1_CREATE_PARAMS 1
382#define ZWP_LINUX_DMABUF_V1_GET_DEFAULT_FEEDBACK 2
383#define ZWP_LINUX_DMABUF_V1_GET_SURFACE_FEEDBACK 3
385/**
386 * @ingroup iface_zwp_linux_dmabuf_v1
387 */
388#define ZWP_LINUX_DMABUF_V1_FORMAT_SINCE_VERSION 1
389/**
390 * @ingroup iface_zwp_linux_dmabuf_v1
391 */
392#define ZWP_LINUX_DMABUF_V1_MODIFIER_SINCE_VERSION 3
394/**
395 * @ingroup iface_zwp_linux_dmabuf_v1
396 */
397#define ZWP_LINUX_DMABUF_V1_DESTROY_SINCE_VERSION 1
398/**
399 * @ingroup iface_zwp_linux_dmabuf_v1
400 */
401#define ZWP_LINUX_DMABUF_V1_CREATE_PARAMS_SINCE_VERSION 1
402/**
403 * @ingroup iface_zwp_linux_dmabuf_v1
404 */
405#define ZWP_LINUX_DMABUF_V1_GET_DEFAULT_FEEDBACK_SINCE_VERSION 4
406/**
407 * @ingroup iface_zwp_linux_dmabuf_v1
408 */
409#define ZWP_LINUX_DMABUF_V1_GET_SURFACE_FEEDBACK_SINCE_VERSION 4
411/** @ingroup iface_zwp_linux_dmabuf_v1 */
412static inline void
413zwp_linux_dmabuf_v1_set_user_data(struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1, void *user_data)
415 wl_proxy_set_user_data((struct wl_proxy *) zwp_linux_dmabuf_v1, user_data);
418/** @ingroup iface_zwp_linux_dmabuf_v1 */
419static inline void *
420zwp_linux_dmabuf_v1_get_user_data(struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1)
422 return wl_proxy_get_user_data((struct wl_proxy *) zwp_linux_dmabuf_v1);
425static inline uint32_t
426zwp_linux_dmabuf_v1_get_version(struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1)
428 return wl_proxy_get_version((struct wl_proxy *) zwp_linux_dmabuf_v1);
431/**
432 * @ingroup iface_zwp_linux_dmabuf_v1
433 *
434 * Objects created through this interface, especially wl_buffers, will
435 * remain valid.
436 */
437static inline void
438zwp_linux_dmabuf_v1_destroy(struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1)
440 wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_dmabuf_v1,
441 ZWP_LINUX_DMABUF_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_linux_dmabuf_v1), WL_MARSHAL_FLAG_DESTROY);
444/**
445 * @ingroup iface_zwp_linux_dmabuf_v1
446 *
447 * This temporary object is used to collect multiple dmabuf handles into
448 * a single batch to create a wl_buffer. It can only be used once and
449 * should be destroyed after a 'created' or 'failed' event has been
450 * received.
451 */
452static inline struct zwp_linux_buffer_params_v1 *
453zwp_linux_dmabuf_v1_create_params(struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1)
455 struct wl_proxy *params_id;
457 params_id = wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_dmabuf_v1,
458 ZWP_LINUX_DMABUF_V1_CREATE_PARAMS, &zwp_linux_buffer_params_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwp_linux_dmabuf_v1), 0, NULL);
460 return (struct zwp_linux_buffer_params_v1 *) params_id;
463/**
464 * @ingroup iface_zwp_linux_dmabuf_v1
465 *
466 * This request creates a new wp_linux_dmabuf_feedback object not bound
467 * to a particular surface. This object will deliver feedback about dmabuf
468 * parameters to use if the client doesn't support per-surface feedback
469 * (see get_surface_feedback).
470 */
471static inline struct zwp_linux_dmabuf_feedback_v1 *
472zwp_linux_dmabuf_v1_get_default_feedback(struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1)
474 struct wl_proxy *id;
476 id = wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_dmabuf_v1,
477 ZWP_LINUX_DMABUF_V1_GET_DEFAULT_FEEDBACK, &zwp_linux_dmabuf_feedback_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwp_linux_dmabuf_v1), 0, NULL);
479 return (struct zwp_linux_dmabuf_feedback_v1 *) id;
482/**
483 * @ingroup iface_zwp_linux_dmabuf_v1
484 *
485 * This request creates a new wp_linux_dmabuf_feedback object for the
486 * specified wl_surface. This object will deliver feedback about dmabuf
487 * parameters to use for buffers attached to this surface.
488 *
489 * If the surface is destroyed before the wp_linux_dmabuf_feedback object,
490 * the feedback object becomes inert.
491 */
492static inline struct zwp_linux_dmabuf_feedback_v1 *
493zwp_linux_dmabuf_v1_get_surface_feedback(struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1, struct wl_surface *surface)
495 struct wl_proxy *id;
497 id = wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_dmabuf_v1,
498 ZWP_LINUX_DMABUF_V1_GET_SURFACE_FEEDBACK, &zwp_linux_dmabuf_feedback_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwp_linux_dmabuf_v1), 0, NULL, surface);
500 return (struct zwp_linux_dmabuf_feedback_v1 *) id;
503#ifndef ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM
504#define ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM
505enum zwp_linux_buffer_params_v1_error {
506 /**
507 * the dmabuf_batch object has already been used to create a wl_buffer
508 */
509 ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ALREADY_USED = 0,
510 /**
511 * plane index out of bounds
512 */
513 ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_PLANE_IDX = 1,
514 /**
515 * the plane index was already set
516 */
517 ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_PLANE_SET = 2,
518 /**
519 * missing or too many planes to create a buffer
520 */
521 ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INCOMPLETE = 3,
522 /**
523 * format not supported
524 */
525 ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_FORMAT = 4,
526 /**
527 * invalid width or height
528 */
529 ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_DIMENSIONS = 5,
530 /**
531 * offset + stride * height goes out of dmabuf bounds
532 */
533 ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_OUT_OF_BOUNDS = 6,
534 /**
535 * invalid wl_buffer resulted from importing dmabufs via the create_immed request on given buffer_params
536 */
537 ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_WL_BUFFER = 7,
538};
539#endif /* ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_ENUM */
541#ifndef ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM
542#define ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM
543enum zwp_linux_buffer_params_v1_flags {
544 /**
545 * contents are y-inverted
546 */
547 ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_Y_INVERT = 1,
548 /**
549 * content is interlaced
550 */
551 ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_INTERLACED = 2,
552 /**
553 * bottom field first
554 */
555 ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_BOTTOM_FIRST = 4,
556};
557#endif /* ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_ENUM */
559/**
560 * @ingroup iface_zwp_linux_buffer_params_v1
561 * @struct zwp_linux_buffer_params_v1_listener
562 */
563struct zwp_linux_buffer_params_v1_listener {
564 /**
565 * buffer creation succeeded
566 *
567 * This event indicates that the attempted buffer creation was
568 * successful. It provides the new wl_buffer referencing the
569 * dmabuf(s).
570 *
571 * Upon receiving this event, the client should destroy the
572 * zwp_linux_buffer_params_v1 object.
573 * @param buffer the newly created wl_buffer
574 */
575 void (*created)(void *data,
576 struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1,
577 struct wl_buffer *buffer);
578 /**
579 * buffer creation failed
580 *
581 * This event indicates that the attempted buffer creation has
582 * failed. It usually means that one of the dmabuf constraints has
583 * not been fulfilled.
584 *
585 * Upon receiving this event, the client should destroy the
586 * zwp_linux_buffer_params_v1 object.
587 */
588 void (*failed)(void *data,
589 struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1);
590};
592/**
593 * @ingroup iface_zwp_linux_buffer_params_v1
594 */
595static inline int
596zwp_linux_buffer_params_v1_add_listener(struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1,
597 const struct zwp_linux_buffer_params_v1_listener *listener, void *data)
599 return wl_proxy_add_listener((struct wl_proxy *) zwp_linux_buffer_params_v1,
600 (void (**)(void)) listener, data);
603#define ZWP_LINUX_BUFFER_PARAMS_V1_DESTROY 0
604#define ZWP_LINUX_BUFFER_PARAMS_V1_ADD 1
605#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATE 2
606#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATE_IMMED 3
608/**
609 * @ingroup iface_zwp_linux_buffer_params_v1
610 */
611#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATED_SINCE_VERSION 1
612/**
613 * @ingroup iface_zwp_linux_buffer_params_v1
614 */
615#define ZWP_LINUX_BUFFER_PARAMS_V1_FAILED_SINCE_VERSION 1
617/**
618 * @ingroup iface_zwp_linux_buffer_params_v1
619 */
620#define ZWP_LINUX_BUFFER_PARAMS_V1_DESTROY_SINCE_VERSION 1
621/**
622 * @ingroup iface_zwp_linux_buffer_params_v1
623 */
624#define ZWP_LINUX_BUFFER_PARAMS_V1_ADD_SINCE_VERSION 1
625/**
626 * @ingroup iface_zwp_linux_buffer_params_v1
627 */
628#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATE_SINCE_VERSION 1
629/**
630 * @ingroup iface_zwp_linux_buffer_params_v1
631 */
632#define ZWP_LINUX_BUFFER_PARAMS_V1_CREATE_IMMED_SINCE_VERSION 2
634/** @ingroup iface_zwp_linux_buffer_params_v1 */
635static inline void
636zwp_linux_buffer_params_v1_set_user_data(struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1, void *user_data)
638 wl_proxy_set_user_data((struct wl_proxy *) zwp_linux_buffer_params_v1, user_data);
641/** @ingroup iface_zwp_linux_buffer_params_v1 */
642static inline void *
643zwp_linux_buffer_params_v1_get_user_data(struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1)
645 return wl_proxy_get_user_data((struct wl_proxy *) zwp_linux_buffer_params_v1);
648static inline uint32_t
649zwp_linux_buffer_params_v1_get_version(struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1)
651 return wl_proxy_get_version((struct wl_proxy *) zwp_linux_buffer_params_v1);
654/**
655 * @ingroup iface_zwp_linux_buffer_params_v1
656 *
657 * Cleans up the temporary data sent to the server for dmabuf-based
658 * wl_buffer creation.
659 */
660static inline void
661zwp_linux_buffer_params_v1_destroy(struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1)
663 wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_buffer_params_v1,
664 ZWP_LINUX_BUFFER_PARAMS_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_linux_buffer_params_v1), WL_MARSHAL_FLAG_DESTROY);
667/**
668 * @ingroup iface_zwp_linux_buffer_params_v1
669 *
670 * This request adds one dmabuf to the set in this
671 * zwp_linux_buffer_params_v1.
672 *
673 * The 64-bit unsigned value combined from modifier_hi and modifier_lo
674 * is the dmabuf layout modifier. DRM AddFB2 ioctl calls this the
675 * fb modifier, which is defined in drm_mode.h of Linux UAPI.
676 * This is an opaque token. Drivers use this token to express tiling,
677 * compression, etc. driver-specific modifications to the base format
678 * defined by the DRM fourcc code.
679 *
680 * Starting from version 4, the invalid_format protocol error is sent if
681 * the format + modifier pair was not advertised as supported.
682 *
683 * Starting from version 5, the invalid_format protocol error is sent if
684 * all planes don't use the same modifier.
685 *
686 * This request raises the PLANE_IDX error if plane_idx is too large.
687 * The error PLANE_SET is raised if attempting to set a plane that
688 * was already set.
689 */
690static inline void
691zwp_linux_buffer_params_v1_add(struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1, int32_t fd, uint32_t plane_idx, uint32_t offset, uint32_t stride, uint32_t modifier_hi, uint32_t modifier_lo)
693 wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_buffer_params_v1,
694 ZWP_LINUX_BUFFER_PARAMS_V1_ADD, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_linux_buffer_params_v1), 0, fd, plane_idx, offset, stride, modifier_hi, modifier_lo);
697/**
698 * @ingroup iface_zwp_linux_buffer_params_v1
699 *
700 * This asks for creation of a wl_buffer from the added dmabuf
701 * buffers. The wl_buffer is not created immediately but returned via
702 * the 'created' event if the dmabuf sharing succeeds. The sharing
703 * may fail at runtime for reasons a client cannot predict, in
704 * which case the 'failed' event is triggered.
705 *
706 * The 'format' argument is a DRM_FORMAT code, as defined by the
707 * libdrm's drm_fourcc.h. The Linux kernel's DRM sub-system is the
708 * authoritative source on how the format codes should work.
709 *
710 * The 'flags' is a bitfield of the flags defined in enum "flags".
711 * 'y_invert' means the that the image needs to be y-flipped.
712 *
713 * Flag 'interlaced' means that the frame in the buffer is not
714 * progressive as usual, but interlaced. An interlaced buffer as
715 * supported here must always contain both top and bottom fields.
716 * The top field always begins on the first pixel row. The temporal
717 * ordering between the two fields is top field first, unless
718 * 'bottom_first' is specified. It is undefined whether 'bottom_first'
719 * is ignored if 'interlaced' is not set.
720 *
721 * This protocol does not convey any information about field rate,
722 * duration, or timing, other than the relative ordering between the
723 * two fields in one buffer. A compositor may have to estimate the
724 * intended field rate from the incoming buffer rate. It is undefined
725 * whether the time of receiving wl_surface.commit with a new buffer
726 * attached, applying the wl_surface state, wl_surface.frame callback
727 * trigger, presentation, or any other point in the compositor cycle
728 * is used to measure the frame or field times. There is no support
729 * for detecting missed or late frames/fields/buffers either, and
730 * there is no support whatsoever for cooperating with interlaced
731 * compositor output.
732 *
733 * The composited image quality resulting from the use of interlaced
734 * buffers is explicitly undefined. A compositor may use elaborate
735 * hardware features or software to deinterlace and create progressive
736 * output frames from a sequence of interlaced input buffers, or it
737 * may produce substandard image quality. However, compositors that
738 * cannot guarantee reasonable image quality in all cases are recommended
739 * to just reject all interlaced buffers.
740 *
741 * Any argument errors, including non-positive width or height,
742 * mismatch between the number of planes and the format, bad
743 * format, bad offset or stride, may be indicated by fatal protocol
744 * errors: INCOMPLETE, INVALID_FORMAT, INVALID_DIMENSIONS,
745 * OUT_OF_BOUNDS.
746 *
747 * Dmabuf import errors in the server that are not obvious client
748 * bugs are returned via the 'failed' event as non-fatal. This
749 * allows attempting dmabuf sharing and falling back in the client
750 * if it fails.
751 *
752 * This request can be sent only once in the object's lifetime, after
753 * which the only legal request is destroy. This object should be
754 * destroyed after issuing a 'create' request. Attempting to use this
755 * object after issuing 'create' raises ALREADY_USED protocol error.
756 *
757 * It is not mandatory to issue 'create'. If a client wants to
758 * cancel the buffer creation, it can just destroy this object.
759 */
760static inline void
761zwp_linux_buffer_params_v1_create(struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1, int32_t width, int32_t height, uint32_t format, uint32_t flags)
763 wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_buffer_params_v1,
764 ZWP_LINUX_BUFFER_PARAMS_V1_CREATE, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_linux_buffer_params_v1), 0, width, height, format, flags);
767/**
768 * @ingroup iface_zwp_linux_buffer_params_v1
769 *
770 * This asks for immediate creation of a wl_buffer by importing the
771 * added dmabufs.
772 *
773 * In case of import success, no event is sent from the server, and the
774 * wl_buffer is ready to be used by the client.
775 *
776 * Upon import failure, either of the following may happen, as seen fit
777 * by the implementation:
778 * - the client is terminated with one of the following fatal protocol
779 * errors:
780 * - INCOMPLETE, INVALID_FORMAT, INVALID_DIMENSIONS, OUT_OF_BOUNDS,
781 * in case of argument errors such as mismatch between the number
782 * of planes and the format, bad format, non-positive width or
783 * height, or bad offset or stride.
784 * - INVALID_WL_BUFFER, in case the cause for failure is unknown or
785 * platform specific.
786 * - the server creates an invalid wl_buffer, marks it as failed and
787 * sends a 'failed' event to the client. The result of using this
788 * invalid wl_buffer as an argument in any request by the client is
789 * defined by the compositor implementation.
790 *
791 * This takes the same arguments as a 'create' request, and obeys the
792 * same restrictions.
793 */
794static inline struct wl_buffer *
795zwp_linux_buffer_params_v1_create_immed(struct zwp_linux_buffer_params_v1 *zwp_linux_buffer_params_v1, int32_t width, int32_t height, uint32_t format, uint32_t flags)
797 struct wl_proxy *buffer_id;
799 buffer_id = wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_buffer_params_v1,
800 ZWP_LINUX_BUFFER_PARAMS_V1_CREATE_IMMED, &wl_buffer_interface, wl_proxy_get_version((struct wl_proxy *) zwp_linux_buffer_params_v1), 0, NULL, width, height, format, flags);
802 return (struct wl_buffer *) buffer_id;
805#ifndef ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM
806#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM
807enum zwp_linux_dmabuf_feedback_v1_tranche_flags {
808 /**
809 * direct scan-out tranche
810 */
811 ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SCANOUT = 1,
812};
813#endif /* ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_ENUM */
815/**
816 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
817 * @struct zwp_linux_dmabuf_feedback_v1_listener
818 */
819struct zwp_linux_dmabuf_feedback_v1_listener {
820 /**
821 * all feedback has been sent
822 *
823 * This event is sent after all parameters of a
824 * wp_linux_dmabuf_feedback object have been sent.
825 *
826 * This allows changes to the wp_linux_dmabuf_feedback parameters
827 * to be seen as atomic, even if they happen via multiple events.
828 */
829 void (*done)(void *data,
830 struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1);
831 /**
832 * format and modifier table
833 *
834 * This event provides a file descriptor which can be
835 * memory-mapped to access the format and modifier table.
836 *
837 * The table contains a tightly packed array of consecutive format
838 * + modifier pairs. Each pair is 16 bytes wide. It contains a
839 * format as a 32-bit unsigned integer, followed by 4 bytes of
840 * unused padding, and a modifier as a 64-bit unsigned integer. The
841 * native endianness is used.
842 *
843 * The client must map the file descriptor in read-only private
844 * mode.
845 *
846 * Compositors are not allowed to mutate the table file contents
847 * once this event has been sent. Instead, compositors must create
848 * a new, separate table file and re-send feedback parameters.
849 * Compositors are allowed to store duplicate format + modifier
850 * pairs in the table.
851 * @param fd table file descriptor
852 * @param size table size, in bytes
853 */
854 void (*format_table)(void *data,
855 struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1,
856 int32_t fd,
857 uint32_t size);
858 /**
859 * preferred main device
860 *
861 * This event advertises the main device that the server prefers
862 * to use when direct scan-out to the target device isn't possible.
863 * The advertised main device may be different for each
864 * wp_linux_dmabuf_feedback object, and may change over time.
865 *
866 * There is exactly one main device. The compositor must send at
867 * least one preference tranche with tranche_target_device equal to
868 * main_device.
869 *
870 * Clients need to create buffers that the main device can import
871 * and read from, otherwise creating the dmabuf wl_buffer will fail
872 * (see the wp_linux_buffer_params.create and create_immed requests
873 * for details). The main device will also likely be kept active by
874 * the compositor, so clients can use it instead of waking up
875 * another device for power savings.
876 *
877 * In general the device is a DRM node. The DRM node type (primary
878 * vs. render) is unspecified. Clients must not rely on the
879 * compositor sending a particular node type. Clients cannot check
880 * two devices for equality by comparing the dev_t value.
881 *
882 * If explicit modifiers are not supported and the client performs
883 * buffer allocations on a different device than the main device,
884 * then the client must force the buffer to have a linear layout.
885 * @param device device dev_t value
886 */
887 void (*main_device)(void *data,
888 struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1,
889 struct wl_array *device);
890 /**
891 * a preference tranche has been sent
892 *
893 * This event splits tranche_target_device and tranche_formats
894 * events in preference tranches. It is sent after a set of
895 * tranche_target_device and tranche_formats events; it represents
896 * the end of a tranche. The next tranche will have a lower
897 * preference.
898 */
899 void (*tranche_done)(void *data,
900 struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1);
901 /**
902 * target device
903 *
904 * This event advertises the target device that the server
905 * prefers to use for a buffer created given this tranche. The
906 * advertised target device may be different for each preference
907 * tranche, and may change over time.
908 *
909 * There is exactly one target device per tranche.
910 *
911 * The target device may be a scan-out device, for example if the
912 * compositor prefers to directly scan-out a buffer created given
913 * this tranche. The target device may be a rendering device, for
914 * example if the compositor prefers to texture from said buffer.
915 *
916 * The client can use this hint to allocate the buffer in a way
917 * that makes it accessible from the target device, ideally
918 * directly. The buffer must still be accessible from the main
919 * device, either through direct import or through a potentially
920 * more expensive fallback path. If the buffer can't be directly
921 * imported from the main device then clients must be prepared for
922 * the compositor changing the tranche priority or making wl_buffer
923 * creation fail (see the wp_linux_buffer_params.create and
924 * create_immed requests for details).
925 *
926 * If the device is a DRM node, the DRM node type (primary vs.
927 * render) is unspecified. Clients must not rely on the compositor
928 * sending a particular node type. Clients cannot check two devices
929 * for equality by comparing the dev_t value.
930 *
931 * This event is tied to a preference tranche, see the tranche_done
932 * event.
933 * @param device device dev_t value
934 */
935 void (*tranche_target_device)(void *data,
936 struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1,
937 struct wl_array *device);
938 /**
939 * supported buffer format modifier
940 *
941 * This event advertises the format + modifier combinations that
942 * the compositor supports.
943 *
944 * It carries an array of indices, each referring to a format +
945 * modifier pair in the last received format table (see the
946 * format_table event). Each index is a 16-bit unsigned integer in
947 * native endianness.
948 *
949 * For legacy support, DRM_FORMAT_MOD_INVALID is an allowed
950 * modifier. It indicates that the server can support the format
951 * with an implicit modifier. When a buffer has
952 * DRM_FORMAT_MOD_INVALID as its modifier, it is as if no explicit
953 * modifier is specified. The effective modifier will be derived
954 * from the dmabuf.
955 *
956 * A compositor that sends valid modifiers and
957 * DRM_FORMAT_MOD_INVALID for a given format supports both explicit
958 * modifiers and implicit modifiers.
959 *
960 * Compositors must not send duplicate format + modifier pairs
961 * within the same tranche or across two different tranches with
962 * the same target device and flags.
963 *
964 * This event is tied to a preference tranche, see the tranche_done
965 * event.
966 *
967 * For the definition of the format and modifier codes, see the
968 * wp_linux_buffer_params.create request.
969 * @param indices array of 16-bit indexes
970 */
971 void (*tranche_formats)(void *data,
972 struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1,
973 struct wl_array *indices);
974 /**
975 * tranche flags
976 *
977 * This event sets tranche-specific flags.
978 *
979 * The scanout flag is a hint that direct scan-out may be attempted
980 * by the compositor on the target device if the client
981 * appropriately allocates a buffer. How to allocate a buffer that
982 * can be scanned out on the target device is
983 * implementation-defined.
984 *
985 * This event is tied to a preference tranche, see the tranche_done
986 * event.
987 * @param flags tranche flags
988 */
989 void (*tranche_flags)(void *data,
990 struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1,
991 uint32_t flags);
992};
994/**
995 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
996 */
997static inline int
998zwp_linux_dmabuf_feedback_v1_add_listener(struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1,
999 const struct zwp_linux_dmabuf_feedback_v1_listener *listener, void *data)
1001 return wl_proxy_add_listener((struct wl_proxy *) zwp_linux_dmabuf_feedback_v1,
1002 (void (**)(void)) listener, data);
1005#define ZWP_LINUX_DMABUF_FEEDBACK_V1_DESTROY 0
1007/**
1008 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1009 */
1010#define ZWP_LINUX_DMABUF_FEEDBACK_V1_DONE_SINCE_VERSION 1
1011/**
1012 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1013 */
1014#define ZWP_LINUX_DMABUF_FEEDBACK_V1_FORMAT_TABLE_SINCE_VERSION 1
1015/**
1016 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1017 */
1018#define ZWP_LINUX_DMABUF_FEEDBACK_V1_MAIN_DEVICE_SINCE_VERSION 1
1019/**
1020 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1021 */
1022#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_DONE_SINCE_VERSION 1
1023/**
1024 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1025 */
1026#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_TARGET_DEVICE_SINCE_VERSION 1
1027/**
1028 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1029 */
1030#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FORMATS_SINCE_VERSION 1
1031/**
1032 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1033 */
1034#define ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SINCE_VERSION 1
1036/**
1037 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1038 */
1039#define ZWP_LINUX_DMABUF_FEEDBACK_V1_DESTROY_SINCE_VERSION 1
1041/** @ingroup iface_zwp_linux_dmabuf_feedback_v1 */
1042static inline void
1043zwp_linux_dmabuf_feedback_v1_set_user_data(struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1, void *user_data)
1045 wl_proxy_set_user_data((struct wl_proxy *) zwp_linux_dmabuf_feedback_v1, user_data);
1048/** @ingroup iface_zwp_linux_dmabuf_feedback_v1 */
1049static inline void *
1050zwp_linux_dmabuf_feedback_v1_get_user_data(struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1)
1052 return wl_proxy_get_user_data((struct wl_proxy *) zwp_linux_dmabuf_feedback_v1);
1055static inline uint32_t
1056zwp_linux_dmabuf_feedback_v1_get_version(struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1)
1058 return wl_proxy_get_version((struct wl_proxy *) zwp_linux_dmabuf_feedback_v1);
1061/**
1062 * @ingroup iface_zwp_linux_dmabuf_feedback_v1
1064 * Using this request a client can tell the server that it is not going to
1065 * use the wp_linux_dmabuf_feedback object anymore.
1066 */
1067static inline void
1068zwp_linux_dmabuf_feedback_v1_destroy(struct zwp_linux_dmabuf_feedback_v1 *zwp_linux_dmabuf_feedback_v1)
1070 wl_proxy_marshal_flags((struct wl_proxy *) zwp_linux_dmabuf_feedback_v1,
1071 ZWP_LINUX_DMABUF_FEEDBACK_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_linux_dmabuf_feedback_v1), WL_MARSHAL_FLAG_DESTROY);
1074#ifdef __cplusplus
1076#endif
1078#endif