AtlatestRepositorysigil-ui
1
/* Generated by wayland-scanner 1.24.0 */3
/*4
* Copyright © 2014, 2015 Collabora, Ltd.5
*6
* Permission is hereby granted, free of charge, to any person obtaining a7
* copy of this software and associated documentation files (the "Software"),8
* to deal in the Software without restriction, including without limitation9
* the rights to use, copy, modify, merge, publish, distribute, sublicense,10
* and/or sell copies of the Software, and to permit persons to whom the11
* Software is furnished to do so, subject to the following conditions:12
*13
* The above copyright notice and this permission notice (including the next14
* paragraph) shall be included in all copies or substantial portions of the15
* Software.16
*17
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR18
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,19
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL20
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER21
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING22
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER23
* DEALINGS IN THE SOFTWARE.24
*/26
#include <stdbool.h>27
#include <stdlib.h>28
#include <stdint.h>29
#include "wayland-util.h"31
#ifndef __has_attribute32
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */33
#endif35
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)36
#define WL_PRIVATE __attribute__ ((visibility("hidden")))37
#else38
#define WL_PRIVATE39
#endif41
extern const struct wl_interface wl_buffer_interface;42
extern const struct wl_interface wl_surface_interface;43
extern const struct wl_interface zwp_linux_buffer_params_v1_interface;44
extern const struct wl_interface zwp_linux_dmabuf_feedback_v1_interface;46
static const struct wl_interface *linux_dmabuf_v1_types[] = {47
NULL,48
NULL,49
NULL,50
NULL,51
NULL,52
NULL,53
&zwp_linux_buffer_params_v1_interface,54
&zwp_linux_dmabuf_feedback_v1_interface,55
&zwp_linux_dmabuf_feedback_v1_interface,56
&wl_surface_interface,57
&wl_buffer_interface,58
NULL,59
NULL,60
NULL,61
NULL,62
&wl_buffer_interface,63
};65
static const struct wl_message zwp_linux_dmabuf_v1_requests[] = {66
{ "destroy", "", linux_dmabuf_v1_types + 0 },67
{ "create_params", "n", linux_dmabuf_v1_types + 6 },68
{ "get_default_feedback", "4n", linux_dmabuf_v1_types + 7 },69
{ "get_surface_feedback", "4no", linux_dmabuf_v1_types + 8 },70
};72
static const struct wl_message zwp_linux_dmabuf_v1_events[] = {73
{ "format", "u", linux_dmabuf_v1_types + 0 },74
{ "modifier", "3uuu", linux_dmabuf_v1_types + 0 },75
};77
WL_PRIVATE const struct wl_interface zwp_linux_dmabuf_v1_interface = {78
"zwp_linux_dmabuf_v1", 5,79
4, zwp_linux_dmabuf_v1_requests,80
2, zwp_linux_dmabuf_v1_events,81
};83
static const struct wl_message zwp_linux_buffer_params_v1_requests[] = {84
{ "destroy", "", linux_dmabuf_v1_types + 0 },85
{ "add", "huuuuu", linux_dmabuf_v1_types + 0 },86
{ "create", "iiuu", linux_dmabuf_v1_types + 0 },87
{ "create_immed", "2niiuu", linux_dmabuf_v1_types + 10 },88
};90
static const struct wl_message zwp_linux_buffer_params_v1_events[] = {91
{ "created", "n", linux_dmabuf_v1_types + 15 },92
{ "failed", "", linux_dmabuf_v1_types + 0 },93
};95
WL_PRIVATE const struct wl_interface zwp_linux_buffer_params_v1_interface = {96
"zwp_linux_buffer_params_v1", 5,97
4, zwp_linux_buffer_params_v1_requests,98
2, zwp_linux_buffer_params_v1_events,99
};101
static const struct wl_message zwp_linux_dmabuf_feedback_v1_requests[] = {102
{ "destroy", "", linux_dmabuf_v1_types + 0 },103
};105
static const struct wl_message zwp_linux_dmabuf_feedback_v1_events[] = {106
{ "done", "", linux_dmabuf_v1_types + 0 },107
{ "format_table", "hu", linux_dmabuf_v1_types + 0 },108
{ "main_device", "a", linux_dmabuf_v1_types + 0 },109
{ "tranche_done", "", linux_dmabuf_v1_types + 0 },110
{ "tranche_target_device", "a", linux_dmabuf_v1_types + 0 },111
{ "tranche_formats", "a", linux_dmabuf_v1_types + 0 },112
{ "tranche_flags", "u", linux_dmabuf_v1_types + 0 },113
};115
WL_PRIVATE const struct wl_interface zwp_linux_dmabuf_feedback_v1_interface = {116
"zwp_linux_dmabuf_feedback_v1", 5,117
1, zwp_linux_dmabuf_feedback_v1_requests,118
7, zwp_linux_dmabuf_feedback_v1_events,119
};