1 /* Generated by wayland-scanner 1.19.0 */
2 
3 /*
4  * Copyright © 2012, 2013 Intel Corporation
5  * Copyright © 2015, 2016 Jan Arne Petersen
6  *
7  * Permission to use, copy, modify, distribute, and sell this
8  * software and its documentation for any purpose is hereby granted
9  * without fee, provided that the above copyright notice appear in
10  * all copies and that both that copyright notice and this permission
11  * notice appear in supporting documentation, and that the name of
12  * the copyright holders not be used in advertising or publicity
13  * pertaining to distribution of the software without specific,
14  * written prior permission.  The copyright holders make no
15  * representations about the suitability of this software for any
16  * purpose.  It is provided "as is" without express or implied
17  * warranty.
18  *
19  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
20  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
21  * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
22  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
24  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
26  * THIS SOFTWARE.
27  */
28 
29 #include <stdlib.h>
30 #include <stdint.h>
31 #include "wayland-util.h"
32 
33 #ifndef __has_attribute
34 # define __has_attribute(x) 0  /* Compatibility with non-clang compilers. */
35 #endif
36 
37 #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
38 #define WL_PRIVATE __attribute__ ((visibility("hidden")))
39 #else
40 #define WL_PRIVATE
41 #endif
42 
43 extern const struct wl_interface gtk_text_input_interface;
44 extern const struct wl_interface wl_seat_interface;
45 extern const struct wl_interface wl_surface_interface;
46 
47 static const struct wl_interface *gtk_text_input_types[] = {
48 	NULL,
49 	NULL,
50 	NULL,
51 	NULL,
52 	NULL,
53 	&wl_surface_interface,
54 	NULL,
55 	&wl_surface_interface,
56 	&gtk_text_input_interface,
57 	&wl_seat_interface,
58 };
59 
60 static const struct wl_message gtk_text_input_requests[] = {
61 	{ "destroy", "", gtk_text_input_types + 0 },
62 	{ "enable", "uu", gtk_text_input_types + 0 },
63 	{ "disable", "", gtk_text_input_types + 0 },
64 	{ "set_surrounding_text", "sii", gtk_text_input_types + 0 },
65 	{ "set_content_type", "uu", gtk_text_input_types + 0 },
66 	{ "set_cursor_rectangle", "iiii", gtk_text_input_types + 0 },
67 	{ "commit", "", gtk_text_input_types + 0 },
68 };
69 
70 static const struct wl_message gtk_text_input_events[] = {
71 	{ "enter", "uo", gtk_text_input_types + 4 },
72 	{ "leave", "uo", gtk_text_input_types + 6 },
73 	{ "preedit_string", "?su", gtk_text_input_types + 0 },
74 	{ "commit_string", "?s", gtk_text_input_types + 0 },
75 	{ "delete_surrounding_text", "uu", gtk_text_input_types + 0 },
76 };
77 
78 WL_PRIVATE const struct wl_interface gtk_text_input_interface = {
79 	"gtk_text_input", 1,
80 	7, gtk_text_input_requests,
81 	5, gtk_text_input_events,
82 };
83 
84 static const struct wl_message gtk_text_input_manager_requests[] = {
85 	{ "destroy", "", gtk_text_input_types + 0 },
86 	{ "get_text_input", "no", gtk_text_input_types + 8 },
87 };
88 
89 WL_PRIVATE const struct wl_interface gtk_text_input_manager_interface = {
90 	"gtk_text_input_manager", 1,
91 	2, gtk_text_input_manager_requests,
92 	0, NULL,
93 };
94 
95