1 /* Generated by wayland-scanner 1.23.0 */
4 * Copyright © 2014, 2015 Collabora, Ltd.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice (including the next
14 * paragraph) shall be included in all copies or substantial portions of the
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE.
29 #include "wayland-util.h"
31 #ifndef __has_attribute
32 # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
35 #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
36 # define WL_PRIVATE __attribute__((visibility("hidden")))
41 #pragma GCC visibility push(default)
42 extern const struct wl_interface wl_buffer_interface
;
43 extern const struct wl_interface wl_surface_interface
;
44 extern const struct wl_interface zwp_linux_buffer_params_v1_interface
;
45 extern const struct wl_interface zwp_linux_dmabuf_feedback_v1_interface
;
46 #pragma GCC visibility pop
48 static const struct wl_interface
* linux_dmabuf_unstable_v1_types
[] = {
55 &zwp_linux_buffer_params_v1_interface
,
56 &zwp_linux_dmabuf_feedback_v1_interface
,
57 &zwp_linux_dmabuf_feedback_v1_interface
,
58 &wl_surface_interface
,
67 static const struct wl_message zwp_linux_dmabuf_v1_requests
[] = {
68 {"destroy", "", linux_dmabuf_unstable_v1_types
+ 0},
69 {"create_params", "n", linux_dmabuf_unstable_v1_types
+ 6},
70 {"get_default_feedback", "4n", linux_dmabuf_unstable_v1_types
+ 7},
71 {"get_surface_feedback", "4no", linux_dmabuf_unstable_v1_types
+ 8},
74 static const struct wl_message zwp_linux_dmabuf_v1_events
[] = {
75 {"format", "u", linux_dmabuf_unstable_v1_types
+ 0},
76 {"modifier", "3uuu", linux_dmabuf_unstable_v1_types
+ 0},
79 const struct wl_interface zwp_linux_dmabuf_v1_interface
= {
80 "zwp_linux_dmabuf_v1", 5, 4,
81 zwp_linux_dmabuf_v1_requests
, 2, zwp_linux_dmabuf_v1_events
,
84 static const struct wl_message zwp_linux_buffer_params_v1_requests
[] = {
85 {"destroy", "", linux_dmabuf_unstable_v1_types
+ 0},
86 {"add", "huuuuu", linux_dmabuf_unstable_v1_types
+ 0},
87 {"create", "iiuu", linux_dmabuf_unstable_v1_types
+ 0},
88 {"create_immed", "2niiuu", linux_dmabuf_unstable_v1_types
+ 10},
91 static const struct wl_message zwp_linux_buffer_params_v1_events
[] = {
92 {"created", "n", linux_dmabuf_unstable_v1_types
+ 15},
93 {"failed", "", linux_dmabuf_unstable_v1_types
+ 0},
96 const struct wl_interface zwp_linux_buffer_params_v1_interface
= {
97 "zwp_linux_buffer_params_v1", 5, 4,
98 zwp_linux_buffer_params_v1_requests
, 2, zwp_linux_buffer_params_v1_events
,
101 static const struct wl_message zwp_linux_dmabuf_feedback_v1_requests
[] = {
102 {"destroy", "", linux_dmabuf_unstable_v1_types
+ 0},
105 static const struct wl_message zwp_linux_dmabuf_feedback_v1_events
[] = {
106 {"done", "", linux_dmabuf_unstable_v1_types
+ 0},
107 {"format_table", "hu", linux_dmabuf_unstable_v1_types
+ 0},
108 {"main_device", "a", linux_dmabuf_unstable_v1_types
+ 0},
109 {"tranche_done", "", linux_dmabuf_unstable_v1_types
+ 0},
110 {"tranche_target_device", "a", linux_dmabuf_unstable_v1_types
+ 0},
111 {"tranche_formats", "a", linux_dmabuf_unstable_v1_types
+ 0},
112 {"tranche_flags", "u", linux_dmabuf_unstable_v1_types
+ 0},
115 const struct wl_interface zwp_linux_dmabuf_feedback_v1_interface
= {
116 "zwp_linux_dmabuf_feedback_v1",
119 zwp_linux_dmabuf_feedback_v1_requests
,
121 zwp_linux_dmabuf_feedback_v1_events
,