Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / widget / gtk / wayland / xx-color-management-v4.c
blobe2c4d4c3cb9a578d74c2b406c383319b1d5179db
1 /* Generated by wayland-scanner 1.23.0 */
3 /*
4 * Copyright 2019 Sebastian Wick
5 * Copyright 2019 Erwin Burema
6 * Copyright 2020 AMD
7 * Copyright 2020-2024 Collabora, Ltd.
8 * Copyright 2024 Xaver Hugl
10 * Permission is hereby granted, free of charge, to any person obtaining a
11 * copy of this software and associated documentation files (the "Software"),
12 * to deal in the Software without restriction, including without limitation
13 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 * and/or sell copies of the Software, and to permit persons to whom the
15 * Software is furnished to do so, subject to the following conditions:
17 * The above copyright notice and this permission notice (including the next
18 * paragraph) shall be included in all copies or substantial portions of the
19 * Software.
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
30 #include <stdbool.h>
31 #include <stdlib.h>
32 #include <stdint.h>
33 #include "wayland-util.h"
35 #ifndef __has_attribute
36 # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
37 #endif
39 #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
40 # define WL_PRIVATE __attribute__((visibility("hidden")))
41 #else
42 # define WL_PRIVATE
43 #endif
45 #pragma GCC visibility push(default)
46 extern const struct wl_interface wl_output_interface;
47 extern const struct wl_interface wl_surface_interface;
48 #pragma GCC visibility pop
50 extern const struct wl_interface
51 xx_color_management_feedback_surface_v4_interface;
52 extern const struct wl_interface xx_color_management_output_v4_interface;
53 extern const struct wl_interface xx_color_management_surface_v4_interface;
54 extern const struct wl_interface xx_image_description_creator_icc_v4_interface;
55 extern const struct wl_interface
56 xx_image_description_creator_params_v4_interface;
57 extern const struct wl_interface xx_image_description_info_v4_interface;
58 extern const struct wl_interface xx_image_description_v4_interface;
60 static const struct wl_interface* color_management_v1_types[] = {
61 NULL,
62 NULL,
63 NULL,
64 NULL,
65 NULL,
66 NULL,
67 NULL,
68 NULL,
69 &xx_color_management_output_v4_interface,
70 &wl_output_interface,
71 &xx_color_management_surface_v4_interface,
72 &wl_surface_interface,
73 &xx_color_management_feedback_surface_v4_interface,
74 &wl_surface_interface,
75 &xx_image_description_creator_icc_v4_interface,
76 &xx_image_description_creator_params_v4_interface,
77 &xx_image_description_v4_interface,
78 &xx_image_description_v4_interface,
79 NULL,
80 &xx_image_description_v4_interface,
81 &xx_image_description_v4_interface,
82 &xx_image_description_v4_interface,
83 &xx_image_description_info_v4_interface,
86 static const struct wl_message xx_color_manager_v4_requests[] = {
87 {"destroy", "", color_management_v1_types + 0},
88 {"get_output", "no", color_management_v1_types + 8},
89 {"get_surface", "no", color_management_v1_types + 10},
90 {"get_feedback_surface", "no", color_management_v1_types + 12},
91 {"new_icc_creator", "n", color_management_v1_types + 14},
92 {"new_parametric_creator", "n", color_management_v1_types + 15},
95 static const struct wl_message xx_color_manager_v4_events[] = {
96 {"supported_intent", "u", color_management_v1_types + 0},
97 {"supported_feature", "u", color_management_v1_types + 0},
98 {"supported_tf_named", "u", color_management_v1_types + 0},
99 {"supported_primaries_named", "u", color_management_v1_types + 0},
102 WL_PRIVATE const struct wl_interface xx_color_manager_v4_interface = {
103 "xx_color_manager_v4", 1, 6,
104 xx_color_manager_v4_requests, 4, xx_color_manager_v4_events,
107 static const struct wl_message xx_color_management_output_v4_requests[] = {
108 {"destroy", "", color_management_v1_types + 0},
109 {"get_image_description", "n", color_management_v1_types + 16},
112 static const struct wl_message xx_color_management_output_v4_events[] = {
113 {"image_description_changed", "", color_management_v1_types + 0},
116 WL_PRIVATE const struct wl_interface xx_color_management_output_v4_interface = {
117 "xx_color_management_output_v4",
120 xx_color_management_output_v4_requests,
122 xx_color_management_output_v4_events,
125 static const struct wl_message xx_color_management_surface_v4_requests[] = {
126 {"destroy", "", color_management_v1_types + 0},
127 {"set_image_description", "ou", color_management_v1_types + 17},
128 {"unset_image_description", "", color_management_v1_types + 0},
131 WL_PRIVATE const struct wl_interface xx_color_management_surface_v4_interface =
133 "xx_color_management_surface_v4", 1, 3,
134 xx_color_management_surface_v4_requests, 0, NULL,
137 static const struct wl_message
138 xx_color_management_feedback_surface_v4_requests[] = {
139 {"destroy", "", color_management_v1_types + 0},
140 {"get_preferred", "n", color_management_v1_types + 19},
143 static const struct wl_message
144 xx_color_management_feedback_surface_v4_events[] = {
145 {"preferred_changed", "", color_management_v1_types + 0},
148 WL_PRIVATE const struct wl_interface
149 xx_color_management_feedback_surface_v4_interface = {
150 "xx_color_management_feedback_surface_v4",
153 xx_color_management_feedback_surface_v4_requests,
155 xx_color_management_feedback_surface_v4_events,
158 static const struct wl_message xx_image_description_creator_icc_v4_requests[] =
160 {"create", "n", color_management_v1_types + 20},
161 {"set_icc_file", "huu", color_management_v1_types + 0},
164 WL_PRIVATE const struct wl_interface
165 xx_image_description_creator_icc_v4_interface = {
166 "xx_image_description_creator_icc_v4", 1, 2,
167 xx_image_description_creator_icc_v4_requests, 0, NULL,
170 static const struct wl_message
171 xx_image_description_creator_params_v4_requests[] = {
172 {"create", "n", color_management_v1_types + 21},
173 {"set_tf_named", "u", color_management_v1_types + 0},
174 {"set_tf_power", "u", color_management_v1_types + 0},
175 {"set_primaries_named", "u", color_management_v1_types + 0},
176 {"set_primaries", "iiiiiiii", color_management_v1_types + 0},
177 {"set_luminances", "uuu", color_management_v1_types + 0},
178 {"set_mastering_display_primaries", "iiiiiiii",
179 color_management_v1_types + 0},
180 {"set_mastering_luminance", "uu", color_management_v1_types + 0},
181 {"set_max_cll", "u", color_management_v1_types + 0},
182 {"set_max_fall", "u", color_management_v1_types + 0},
185 WL_PRIVATE const struct wl_interface
186 xx_image_description_creator_params_v4_interface = {
187 "xx_image_description_creator_params_v4", 1, 10,
188 xx_image_description_creator_params_v4_requests, 0, NULL,
191 static const struct wl_message xx_image_description_v4_requests[] = {
192 {"destroy", "", color_management_v1_types + 0},
193 {"get_information", "n", color_management_v1_types + 22},
196 static const struct wl_message xx_image_description_v4_events[] = {
197 {"failed", "us", color_management_v1_types + 0},
198 {"ready", "u", color_management_v1_types + 0},
201 WL_PRIVATE const struct wl_interface xx_image_description_v4_interface = {
202 "xx_image_description_v4", 1, 2,
203 xx_image_description_v4_requests, 2, xx_image_description_v4_events,
206 static const struct wl_message xx_image_description_info_v4_events[] = {
207 {"done", "", color_management_v1_types + 0},
208 {"icc_file", "hu", color_management_v1_types + 0},
209 {"primaries", "iiiiiiii", color_management_v1_types + 0},
210 {"primaries_named", "u", color_management_v1_types + 0},
211 {"tf_power", "u", color_management_v1_types + 0},
212 {"tf_named", "u", color_management_v1_types + 0},
213 {"luminances", "uuu", color_management_v1_types + 0},
214 {"target_primaries", "iiiiiiii", color_management_v1_types + 0},
215 {"target_luminance", "uu", color_management_v1_types + 0},
216 {"target_max_cll", "u", color_management_v1_types + 0},
217 {"target_max_fall", "u", color_management_v1_types + 0},
220 WL_PRIVATE const struct wl_interface xx_image_description_info_v4_interface = {
221 "xx_image_description_info_v4", 1, 0, NULL, 11,
222 xx_image_description_info_v4_events,