Source code
Revision control
Copy as Markdown
Other Tools
/* Generated by wayland-scanner 1.23.0 */
/*
* Copyright 2019 Sebastian Wick
* Copyright 2019 Erwin Burema
* Copyright 2020 AMD
* Copyright 2020-2024 Collabora, Ltd.
* Copyright 2024 Xaver Hugl
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include "wayland-util.h"
#ifndef __has_attribute
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
#endif
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
# define WL_PRIVATE __attribute__((visibility("hidden")))
#else
# define WL_PRIVATE
#endif
#pragma GCC visibility push(default)
extern const struct wl_interface wl_output_interface;
extern const struct wl_interface wl_surface_interface;
#pragma GCC visibility pop
extern const struct wl_interface
xx_color_management_feedback_surface_v4_interface;
extern const struct wl_interface xx_color_management_output_v4_interface;
extern const struct wl_interface xx_color_management_surface_v4_interface;
extern const struct wl_interface xx_image_description_creator_icc_v4_interface;
extern const struct wl_interface
xx_image_description_creator_params_v4_interface;
extern const struct wl_interface xx_image_description_info_v4_interface;
extern const struct wl_interface xx_image_description_v4_interface;
static const struct wl_interface* color_management_v1_types[] = {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
&xx_color_management_output_v4_interface,
&wl_output_interface,
&xx_color_management_surface_v4_interface,
&wl_surface_interface,
&xx_color_management_feedback_surface_v4_interface,
&wl_surface_interface,
&xx_image_description_creator_icc_v4_interface,
&xx_image_description_creator_params_v4_interface,
&xx_image_description_v4_interface,
&xx_image_description_v4_interface,
NULL,
&xx_image_description_v4_interface,
&xx_image_description_v4_interface,
&xx_image_description_v4_interface,
&xx_image_description_info_v4_interface,
};
static const struct wl_message xx_color_manager_v4_requests[] = {
{"destroy", "", color_management_v1_types + 0},
{"get_output", "no", color_management_v1_types + 8},
{"get_surface", "no", color_management_v1_types + 10},
{"get_feedback_surface", "no", color_management_v1_types + 12},
{"new_icc_creator", "n", color_management_v1_types + 14},
{"new_parametric_creator", "n", color_management_v1_types + 15},
};
static const struct wl_message xx_color_manager_v4_events[] = {
{"supported_intent", "u", color_management_v1_types + 0},
{"supported_feature", "u", color_management_v1_types + 0},
{"supported_tf_named", "u", color_management_v1_types + 0},
{"supported_primaries_named", "u", color_management_v1_types + 0},
};
WL_PRIVATE const struct wl_interface xx_color_manager_v4_interface = {
"xx_color_manager_v4", 1, 6,
xx_color_manager_v4_requests, 4, xx_color_manager_v4_events,
};
static const struct wl_message xx_color_management_output_v4_requests[] = {
{"destroy", "", color_management_v1_types + 0},
{"get_image_description", "n", color_management_v1_types + 16},
};
static const struct wl_message xx_color_management_output_v4_events[] = {
{"image_description_changed", "", color_management_v1_types + 0},
};
WL_PRIVATE const struct wl_interface xx_color_management_output_v4_interface = {
"xx_color_management_output_v4",
1,
2,
xx_color_management_output_v4_requests,
1,
xx_color_management_output_v4_events,
};
static const struct wl_message xx_color_management_surface_v4_requests[] = {
{"destroy", "", color_management_v1_types + 0},
{"set_image_description", "ou", color_management_v1_types + 17},
{"unset_image_description", "", color_management_v1_types + 0},
};
WL_PRIVATE const struct wl_interface xx_color_management_surface_v4_interface =
{
"xx_color_management_surface_v4", 1, 3,
xx_color_management_surface_v4_requests, 0, NULL,
};
static const struct wl_message
xx_color_management_feedback_surface_v4_requests[] = {
{"destroy", "", color_management_v1_types + 0},
{"get_preferred", "n", color_management_v1_types + 19},
};
static const struct wl_message
xx_color_management_feedback_surface_v4_events[] = {
{"preferred_changed", "", color_management_v1_types + 0},
};
WL_PRIVATE const struct wl_interface
xx_color_management_feedback_surface_v4_interface = {
"xx_color_management_feedback_surface_v4",
1,
2,
xx_color_management_feedback_surface_v4_requests,
1,
xx_color_management_feedback_surface_v4_events,
};
static const struct wl_message xx_image_description_creator_icc_v4_requests[] =
{
{"create", "n", color_management_v1_types + 20},
{"set_icc_file", "huu", color_management_v1_types + 0},
};
WL_PRIVATE const struct wl_interface
xx_image_description_creator_icc_v4_interface = {
"xx_image_description_creator_icc_v4", 1, 2,
xx_image_description_creator_icc_v4_requests, 0, NULL,
};
static const struct wl_message
xx_image_description_creator_params_v4_requests[] = {
{"create", "n", color_management_v1_types + 21},
{"set_tf_named", "u", color_management_v1_types + 0},
{"set_tf_power", "u", color_management_v1_types + 0},
{"set_primaries_named", "u", color_management_v1_types + 0},
{"set_primaries", "iiiiiiii", color_management_v1_types + 0},
{"set_luminances", "uuu", color_management_v1_types + 0},
{"set_mastering_display_primaries", "iiiiiiii",
color_management_v1_types + 0},
{"set_mastering_luminance", "uu", color_management_v1_types + 0},
{"set_max_cll", "u", color_management_v1_types + 0},
{"set_max_fall", "u", color_management_v1_types + 0},
};
WL_PRIVATE const struct wl_interface
xx_image_description_creator_params_v4_interface = {
"xx_image_description_creator_params_v4", 1, 10,
xx_image_description_creator_params_v4_requests, 0, NULL,
};
static const struct wl_message xx_image_description_v4_requests[] = {
{"destroy", "", color_management_v1_types + 0},
{"get_information", "n", color_management_v1_types + 22},
};
static const struct wl_message xx_image_description_v4_events[] = {
{"failed", "us", color_management_v1_types + 0},
{"ready", "u", color_management_v1_types + 0},
};
WL_PRIVATE const struct wl_interface xx_image_description_v4_interface = {
"xx_image_description_v4", 1, 2,
xx_image_description_v4_requests, 2, xx_image_description_v4_events,
};
static const struct wl_message xx_image_description_info_v4_events[] = {
{"done", "", color_management_v1_types + 0},
{"icc_file", "hu", color_management_v1_types + 0},
{"primaries", "iiiiiiii", color_management_v1_types + 0},
{"primaries_named", "u", color_management_v1_types + 0},
{"tf_power", "u", color_management_v1_types + 0},
{"tf_named", "u", color_management_v1_types + 0},
{"luminances", "uuu", color_management_v1_types + 0},
{"target_primaries", "iiiiiiii", color_management_v1_types + 0},
{"target_luminance", "uu", color_management_v1_types + 0},
{"target_max_cll", "u", color_management_v1_types + 0},
{"target_max_fall", "u", color_management_v1_types + 0},
};
WL_PRIVATE const struct wl_interface xx_image_description_info_v4_interface = {
"xx_image_description_info_v4", 1, 0, NULL, 11,
xx_image_description_info_v4_events,
};