wayland_text_input.c 3.6 KB

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