1 /* Generated by wayland-scanner 1.22.0 */
2 
3 /*
4  * Copyright 2021 The Chromium Authors.
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
23 #include <stdlib.h>
24 #include <stdint.h>
25 #include "wayland-util.h"
26 
27 #ifndef __has_attribute
28 # define __has_attribute(x) 0  /* Compatibility with non-clang compilers. */
29 #endif
30 
31 #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
32 #define WL_PRIVATE __attribute__ ((visibility("hidden")))
33 #else
34 #define WL_PRIVATE
35 #endif
36 
37 extern const struct wl_interface wl_surface_interface;
38 extern const struct wl_interface wp_virtio_gpu_surface_metadata_v1_interface;
39 
40 static const struct wl_interface *wp_virtio_gpu_metadata_v1_types[] = {
41 	NULL,
42 	&wp_virtio_gpu_surface_metadata_v1_interface,
43 	&wl_surface_interface,
44 };
45 
46 static const struct wl_message wp_virtio_gpu_metadata_v1_requests[] = {
47 	{ "get_surface_metadata", "no", wp_virtio_gpu_metadata_v1_types + 1 },
48 };
49 
50 WL_PRIVATE const struct wl_interface wp_virtio_gpu_metadata_v1_interface = {
51 	"wp_virtio_gpu_metadata_v1", 1,
52 	1, wp_virtio_gpu_metadata_v1_requests,
53 	0, NULL,
54 };
55 
56 static const struct wl_message wp_virtio_gpu_surface_metadata_v1_requests[] = {
57 	{ "set_scanout_id", "u", wp_virtio_gpu_metadata_v1_types + 0 },
58 };
59 
60 WL_PRIVATE const struct wl_interface wp_virtio_gpu_surface_metadata_v1_interface = {
61 	"wp_virtio_gpu_surface_metadata_v1", 1,
62 	1, wp_virtio_gpu_surface_metadata_v1_requests,
63 	0, NULL,
64 };
65 
66