Debian Codegraph @

client/wayland/input-method-unstable-v2-protocol.c

raw
1 /* Generated by wayland-scanner 1.23.0 */
2
3 /*
4 * Copyright © 2008-2011 Kristian Høgsberg
5 * Copyright © 2010-2011 Intel Corporation
6 * Copyright © 2012-2013 Collabora, Ltd.
7 * Copyright © 2012, 2013 Intel Corporation
8 * Copyright © 2015, 2016 Jan Arne Petersen
9 * Copyright © 2017, 2018 Red Hat, Inc.
10 * Copyright © 2018 Purism SPC
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice (including the next
20 * paragraph) shall be included in all copies or substantial portions of the
21 * Software.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 * DEALINGS IN THE SOFTWARE.
30 */
31
32 #include <stdbool.h>
33 #include <stdlib.h>
34 #include <stdint.h>
35 #include "wayland-util.h"
36
37 extern const struct wl_interface wl_seat_interface;
38 extern const struct wl_interface wl_surface_interface;
39 extern const struct wl_interface zwp_input_method_keyboard_grab_v2_interface;
40 extern const struct wl_interface zwp_input_method_v2_interface;
41 extern const struct wl_interface zwp_input_popup_surface_v2_interface;
42
43 static const struct wl_interface *input_method_unstable_v2_types[] = {
44 NULL,
45 NULL,
46 NULL,
47 NULL,
48 NULL,
49 &zwp_input_popup_surface_v2_interface,
50 &wl_surface_interface,
51 &zwp_input_method_keyboard_grab_v2_interface,
52 &wl_seat_interface,
53 &zwp_input_method_v2_interface,
54 };
55
56 static const struct wl_message zwp_input_method_v2_requests[] = {
57 { "commit_string", "s", input_method_unstable_v2_types + 0 },
58 { "set_preedit_string", "sii", input_method_unstable_v2_types + 0 },
59 { "delete_surrounding_text", "uu", input_method_unstable_v2_types + 0 },
60 { "commit", "u", input_method_unstable_v2_types + 0 },
61 { "get_input_popup_surface", "no", input_method_unstable_v2_types + 5 },
62 { "grab_keyboard", "n", input_method_unstable_v2_types + 7 },
63 { "destroy", "", input_method_unstable_v2_types + 0 },
64 };
65
66 static const struct wl_message zwp_input_method_v2_events[] = {
67 { "activate", "", input_method_unstable_v2_types + 0 },
68 { "deactivate", "", input_method_unstable_v2_types + 0 },
69 { "surrounding_text", "suu", input_method_unstable_v2_types + 0 },
70 { "text_change_cause", "u", input_method_unstable_v2_types + 0 },
71 { "content_type", "uu", input_method_unstable_v2_types + 0 },
72 { "done", "", input_method_unstable_v2_types + 0 },
73 { "unavailable", "", input_method_unstable_v2_types + 0 },
74 };
75
76 WL_EXPORT const struct wl_interface zwp_input_method_v2_interface = {
77 "zwp_input_method_v2", 1,
78 7, zwp_input_method_v2_requests,
79 7, zwp_input_method_v2_events,
80 };
81
82 static const struct wl_message zwp_input_popup_surface_v2_requests[] = {
83 { "destroy", "", input_method_unstable_v2_types + 0 },
84 };
85
86 static const struct wl_message zwp_input_popup_surface_v2_events[] = {
87 { "text_input_rectangle", "iiii", input_method_unstable_v2_types + 0 },
88 };
89
90 WL_EXPORT const struct wl_interface zwp_input_popup_surface_v2_interface = {
91 "zwp_input_popup_surface_v2", 1,
92 1, zwp_input_popup_surface_v2_requests,
93 1, zwp_input_popup_surface_v2_events,
94 };
95
96 static const struct wl_message zwp_input_method_keyboard_grab_v2_requests[] = {
97 { "release", "", input_method_unstable_v2_types + 0 },
98 };
99
100 static const struct wl_message zwp_input_method_keyboard_grab_v2_events[] = {
101 { "keymap", "uhu", input_method_unstable_v2_types + 0 },
102 { "key", "uuuu", input_method_unstable_v2_types + 0 },
103 { "modifiers", "uuuuu", input_method_unstable_v2_types + 0 },
104 { "repeat_info", "ii", input_method_unstable_v2_types + 0 },
105 };
106
107 WL_EXPORT const struct wl_interface zwp_input_method_keyboard_grab_v2_interface = {
108 "zwp_input_method_keyboard_grab_v2", 1,
109 1, zwp_input_method_keyboard_grab_v2_requests,
110 4, zwp_input_method_keyboard_grab_v2_events,
111 };
112
113 static const struct wl_message zwp_input_method_manager_v2_requests[] = {
114 { "get_input_method", "on", input_method_unstable_v2_types + 8 },
115 { "destroy", "", input_method_unstable_v2_types + 0 },
116 };
117
118 WL_EXPORT const struct wl_interface zwp_input_method_manager_v2_interface = {
119 "zwp_input_method_manager_v2", 1,
120 2, zwp_input_method_manager_v2_requests,
121 0, NULL,
122 };
123