AtlatestRepositorysigil-ui

sigil-ui / tree / test / waylandvirtual-keyboard-unstable-v1-protocol.c

1/* Generated by wayland-scanner 1.24.0 */
2
3/*
4 * Copyright © 2008-2011 Kristian Høgsberg
5 * Copyright © 2010-2013 Intel Corporation
6 * Copyright © 2012-2013 Collabora, Ltd.
7 * Copyright © 2018 Purism SPC
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice (including the next
17 * paragraph) shall be included in all copies or substantial portions of the
18 * Software.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26 * DEALINGS IN THE SOFTWARE.
27 */
29#include <stdbool.h>
30#include <stdlib.h>
31#include <stdint.h>
32#include "wayland-util.h"
34#ifndef __has_attribute
35# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
36#endif
38#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
39#define WL_PRIVATE __attribute__ ((visibility("hidden")))
40#else
41#define WL_PRIVATE
42#endif
44extern const struct wl_interface wl_seat_interface;
45extern const struct wl_interface zwp_virtual_keyboard_v1_interface;
47static const struct wl_interface *virtual_keyboard_unstable_v1_types[] = {
48 NULL,
49 NULL,
50 NULL,
51 NULL,
52 &wl_seat_interface,
53 &zwp_virtual_keyboard_v1_interface,
54};
56static const struct wl_message zwp_virtual_keyboard_v1_requests[] = {
57 { "keymap", "uhu", virtual_keyboard_unstable_v1_types + 0 },
58 { "key", "uuu", virtual_keyboard_unstable_v1_types + 0 },
59 { "modifiers", "uuuu", virtual_keyboard_unstable_v1_types + 0 },
60 { "destroy", "", virtual_keyboard_unstable_v1_types + 0 },
61};
63WL_PRIVATE const struct wl_interface zwp_virtual_keyboard_v1_interface = {
64 "zwp_virtual_keyboard_v1", 1,
65 4, zwp_virtual_keyboard_v1_requests,
66 0, NULL,
67};
69static const struct wl_message zwp_virtual_keyboard_manager_v1_requests[] = {
70 { "create_virtual_keyboard", "on", virtual_keyboard_unstable_v1_types + 4 },
71};
73WL_PRIVATE const struct wl_interface zwp_virtual_keyboard_manager_v1_interface = {
74 "zwp_virtual_keyboard_manager_v1", 1,
75 1, zwp_virtual_keyboard_manager_v1_requests,
76 0, NULL,
77};