| 1 |
/* Generated by wayland-scanner 1.22.0 */ |
| 2 |
|
| 3 |
/* |
| 4 |
* Copyright © 2012, 2013 Intel Corporation |
| 5 |
* |
| 6 |
* Permission is hereby granted, free of charge, to any person obtaining a |
| 7 |
* copy of this software and associated documentation files (the "Software"), |
| 8 |
* to deal in the Software without restriction, including without limitation |
| 9 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 10 |
* and/or sell copies of the Software, and to permit persons to whom the |
| 11 |
* Software is furnished to do so, subject to the following conditions: |
| 12 |
* |
| 13 |
* The above copyright notice and this permission notice (including the next |
| 14 |
* paragraph) shall be included in all copies or substantial portions of the |
| 15 |
* Software. |
| 16 |
* |
| 17 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 18 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 20 |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 21 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 22 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 23 |
* DEALINGS IN THE SOFTWARE. |
| 24 |
*/ |
| 25 |
|
| 26 |
#include <stdlib.h> |
| 27 |
#include <stdint.h> |
| 28 |
#include "wayland-util.h" |
| 29 |
|
| 30 |
extern const struct wl_interface wl_keyboard_interface; |
| 31 |
extern const struct wl_interface wl_output_interface; |
| 32 |
extern const struct wl_interface wl_surface_interface; |
| 33 |
extern const struct wl_interface zwp_input_method_context_v1_interface; |
| 34 |
extern const struct wl_interface zwp_input_panel_surface_v1_interface; |
| 35 |
|
| 36 |
static const struct wl_interface *input_method_unstable_v1_types[] = { |
| 37 |
NULL, |
| 38 |
NULL, |
| 39 |
NULL, |
| 40 |
NULL, |
| 41 |
NULL, |
| 42 |
&wl_keyboard_interface, |
| 43 |
&zwp_input_method_context_v1_interface, |
| 44 |
&zwp_input_method_context_v1_interface, |
| 45 |
&zwp_input_panel_surface_v1_interface, |
| 46 |
&wl_surface_interface, |
| 47 |
&wl_output_interface, |
| 48 |
NULL, |
| 49 |
}; |
| 50 |
|
| 51 |
static const struct wl_message zwp_input_method_context_v1_requests[] = { |
| 52 |
{ "destroy", "", input_method_unstable_v1_types + 0 }, |
| 53 |
{ "commit_string", "us", input_method_unstable_v1_types + 0 }, |
| 54 |
{ "preedit_string", "uss", input_method_unstable_v1_types + 0 }, |
| 55 |
{ "preedit_styling", "uuu", input_method_unstable_v1_types + 0 }, |
| 56 |
{ "preedit_cursor", "i", input_method_unstable_v1_types + 0 }, |
| 57 |
{ "delete_surrounding_text", "iu", input_method_unstable_v1_types + 0 }, |
| 58 |
{ "cursor_position", "ii", input_method_unstable_v1_types + 0 }, |
| 59 |
{ "modifiers_map", "a", input_method_unstable_v1_types + 0 }, |
| 60 |
{ "keysym", "uuuuu", input_method_unstable_v1_types + 0 }, |
| 61 |
{ "grab_keyboard", "n", input_method_unstable_v1_types + 5 }, |
| 62 |
{ "key", "uuuu", input_method_unstable_v1_types + 0 }, |
| 63 |
{ "modifiers", "uuuuu", input_method_unstable_v1_types + 0 }, |
| 64 |
{ "language", "us", input_method_unstable_v1_types + 0 }, |
| 65 |
{ "text_direction", "uu", input_method_unstable_v1_types + 0 }, |
| 66 |
}; |
| 67 |
|
| 68 |
static const struct wl_message zwp_input_method_context_v1_events[] = { |
| 69 |
{ "surrounding_text", "suu", input_method_unstable_v1_types + 0 }, |
| 70 |
{ "reset", "", input_method_unstable_v1_types + 0 }, |
| 71 |
{ "content_type", "uu", input_method_unstable_v1_types + 0 }, |
| 72 |
{ "invoke_action", "uu", input_method_unstable_v1_types + 0 }, |
| 73 |
{ "commit_state", "u", input_method_unstable_v1_types + 0 }, |
| 74 |
{ "preferred_language", "s", input_method_unstable_v1_types + 0 }, |
| 75 |
}; |
| 76 |
|
| 77 |
WL_EXPORT const struct wl_interface zwp_input_method_context_v1_interface = { |
| 78 |
"zwp_input_method_context_v1", 1, |
| 79 |
14, zwp_input_method_context_v1_requests, |
| 80 |
6, zwp_input_method_context_v1_events, |
| 81 |
}; |
| 82 |
|
| 83 |
static const struct wl_message zwp_input_method_v1_events[] = { |
| 84 |
{ "activate", "n", input_method_unstable_v1_types + 6 }, |
| 85 |
{ "deactivate", "o", input_method_unstable_v1_types + 7 }, |
| 86 |
}; |
| 87 |
|
| 88 |
WL_EXPORT const struct wl_interface zwp_input_method_v1_interface = { |
| 89 |
"zwp_input_method_v1", 1, |
| 90 |
0, NULL, |
| 91 |
2, zwp_input_method_v1_events, |
| 92 |
}; |
| 93 |
|
| 94 |
static const struct wl_message zwp_input_panel_v1_requests[] = { |
| 95 |
{ "get_input_panel_surface", "no", input_method_unstable_v1_types + 8 }, |
| 96 |
}; |
| 97 |
|
| 98 |
WL_EXPORT const struct wl_interface zwp_input_panel_v1_interface = { |
| 99 |
"zwp_input_panel_v1", 1, |
| 100 |
1, zwp_input_panel_v1_requests, |
| 101 |
0, NULL, |
| 102 |
}; |
| 103 |
|
| 104 |
static const struct wl_message zwp_input_panel_surface_v1_requests[] = { |
| 105 |
{ "set_toplevel", "ou", input_method_unstable_v1_types + 10 }, |
| 106 |
{ "set_overlay_panel", "", input_method_unstable_v1_types + 0 }, |
| 107 |
}; |
| 108 |
|
| 109 |
WL_EXPORT const struct wl_interface zwp_input_panel_surface_v1_interface = { |
| 110 |
"zwp_input_panel_surface_v1", 1, |
| 111 |
2, zwp_input_panel_surface_v1_requests, |
| 112 |
0, NULL, |
| 113 |
}; |
| 114 |
|