wayland_xdg_shell.c 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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 © 2008-2013 Kristian Høgsberg
  7. * Copyright © 2013 Rafael Antognolli
  8. * Copyright © 2013 Jasper St. Pierre
  9. * Copyright © 2010-2013 Intel Corporation
  10. * Copyright © 2015-2017 Samsung Electronics Co., Ltd
  11. * Copyright © 2015-2017 Red Hat Inc.
  12. *
  13. * Permission is hereby granted, free of charge, to any person obtaining a
  14. * copy of this software and associated documentation files (the "Software"),
  15. * to deal in the Software without restriction, including without limitation
  16. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  17. * and/or sell copies of the Software, and to permit persons to whom the
  18. * Software is furnished to do so, subject to the following conditions:
  19. *
  20. * The above copyright notice and this permission notice (including the next
  21. * paragraph) shall be included in all copies or substantial portions of the
  22. * Software.
  23. *
  24. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  25. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  26. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  27. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  28. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  29. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  30. * DEALINGS IN THE 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_output_interface;
  44. extern const struct wl_interface wl_seat_interface;
  45. extern const struct wl_interface wl_surface_interface;
  46. extern const struct wl_interface xdg_popup_interface;
  47. extern const struct wl_interface xdg_positioner_interface;
  48. extern const struct wl_interface xdg_surface_interface;
  49. extern const struct wl_interface xdg_toplevel_interface;
  50. static const struct wl_interface *xdg_shell_types[] = {
  51. NULL,
  52. NULL,
  53. NULL,
  54. NULL,
  55. &xdg_positioner_interface,
  56. &xdg_surface_interface,
  57. &wl_surface_interface,
  58. &xdg_toplevel_interface,
  59. &xdg_popup_interface,
  60. &xdg_surface_interface,
  61. &xdg_positioner_interface,
  62. &xdg_toplevel_interface,
  63. &wl_seat_interface,
  64. NULL,
  65. NULL,
  66. NULL,
  67. &wl_seat_interface,
  68. NULL,
  69. &wl_seat_interface,
  70. NULL,
  71. NULL,
  72. &wl_output_interface,
  73. &wl_seat_interface,
  74. NULL,
  75. &xdg_positioner_interface,
  76. NULL,
  77. };
  78. static const struct wl_message xdg_wm_base_requests[] = {
  79. { "destroy", "", xdg_shell_types + 0 },
  80. { "create_positioner", "n", xdg_shell_types + 4 },
  81. { "get_xdg_surface", "no", xdg_shell_types + 5 },
  82. { "pong", "u", xdg_shell_types + 0 },
  83. };
  84. static const struct wl_message xdg_wm_base_events[] = {
  85. { "ping", "u", xdg_shell_types + 0 },
  86. };
  87. WL_PRIVATE const struct wl_interface xdg_wm_base_interface = {
  88. "xdg_wm_base", 3,
  89. 4, xdg_wm_base_requests,
  90. 1, xdg_wm_base_events,
  91. };
  92. static const struct wl_message xdg_positioner_requests[] = {
  93. { "destroy", "", xdg_shell_types + 0 },
  94. { "set_size", "ii", xdg_shell_types + 0 },
  95. { "set_anchor_rect", "iiii", xdg_shell_types + 0 },
  96. { "set_anchor", "u", xdg_shell_types + 0 },
  97. { "set_gravity", "u", xdg_shell_types + 0 },
  98. { "set_constraint_adjustment", "u", xdg_shell_types + 0 },
  99. { "set_offset", "ii", xdg_shell_types + 0 },
  100. { "set_reactive", "3", xdg_shell_types + 0 },
  101. { "set_parent_size", "3ii", xdg_shell_types + 0 },
  102. { "set_parent_configure", "3u", xdg_shell_types + 0 },
  103. };
  104. WL_PRIVATE const struct wl_interface xdg_positioner_interface = {
  105. "xdg_positioner", 3,
  106. 10, xdg_positioner_requests,
  107. 0, NULL,
  108. };
  109. static const struct wl_message xdg_surface_requests[] = {
  110. { "destroy", "", xdg_shell_types + 0 },
  111. { "get_toplevel", "n", xdg_shell_types + 7 },
  112. { "get_popup", "n?oo", xdg_shell_types + 8 },
  113. { "set_window_geometry", "iiii", xdg_shell_types + 0 },
  114. { "ack_configure", "u", xdg_shell_types + 0 },
  115. };
  116. static const struct wl_message xdg_surface_events[] = {
  117. { "configure", "u", xdg_shell_types + 0 },
  118. };
  119. WL_PRIVATE const struct wl_interface xdg_surface_interface = {
  120. "xdg_surface", 3,
  121. 5, xdg_surface_requests,
  122. 1, xdg_surface_events,
  123. };
  124. static const struct wl_message xdg_toplevel_requests[] = {
  125. { "destroy", "", xdg_shell_types + 0 },
  126. { "set_parent", "?o", xdg_shell_types + 11 },
  127. { "set_title", "s", xdg_shell_types + 0 },
  128. { "set_app_id", "s", xdg_shell_types + 0 },
  129. { "show_window_menu", "ouii", xdg_shell_types + 12 },
  130. { "move", "ou", xdg_shell_types + 16 },
  131. { "resize", "ouu", xdg_shell_types + 18 },
  132. { "set_max_size", "ii", xdg_shell_types + 0 },
  133. { "set_min_size", "ii", xdg_shell_types + 0 },
  134. { "set_maximized", "", xdg_shell_types + 0 },
  135. { "unset_maximized", "", xdg_shell_types + 0 },
  136. { "set_fullscreen", "?o", xdg_shell_types + 21 },
  137. { "unset_fullscreen", "", xdg_shell_types + 0 },
  138. { "set_minimized", "", xdg_shell_types + 0 },
  139. };
  140. static const struct wl_message xdg_toplevel_events[] = {
  141. { "configure", "iia", xdg_shell_types + 0 },
  142. { "close", "", xdg_shell_types + 0 },
  143. };
  144. WL_PRIVATE const struct wl_interface xdg_toplevel_interface = {
  145. "xdg_toplevel", 3,
  146. 14, xdg_toplevel_requests,
  147. 2, xdg_toplevel_events,
  148. };
  149. static const struct wl_message xdg_popup_requests[] = {
  150. { "destroy", "", xdg_shell_types + 0 },
  151. { "grab", "ou", xdg_shell_types + 22 },
  152. { "reposition", "3ou", xdg_shell_types + 24 },
  153. };
  154. static const struct wl_message xdg_popup_events[] = {
  155. { "configure", "iiii", xdg_shell_types + 0 },
  156. { "popup_done", "", xdg_shell_types + 0 },
  157. { "repositioned", "3u", xdg_shell_types + 0 },
  158. };
  159. WL_PRIVATE const struct wl_interface xdg_popup_interface = {
  160. "xdg_popup", 3,
  161. 3, xdg_popup_requests,
  162. 3, xdg_popup_events,
  163. };