wlr-layer-shell-unstable-v1.c 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* Generated by wayland-scanner 1.22.0 */
  2. /*
  3. * Copyright © 2017 Drew DeVault
  4. *
  5. * Permission to use, copy, modify, distribute, and sell this
  6. * software and its documentation for any purpose is hereby granted
  7. * without fee, provided that the above copyright notice appear in
  8. * all copies and that both that copyright notice and this permission
  9. * notice appear in supporting documentation, and that the name of
  10. * the copyright holders not be used in advertising or publicity
  11. * pertaining to distribution of the software without specific,
  12. * written prior permission. The copyright holders make no
  13. * representations about the suitability of this software for any
  14. * purpose. It is provided "as is" without express or implied
  15. * warranty.
  16. *
  17. * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  18. * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  19. * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
  20. * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  21. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
  22. * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  24. * THIS SOFTWARE.
  25. */
  26. #include <stdlib.h>
  27. #include <stdint.h>
  28. #include "wayland-util.h"
  29. #ifndef __has_attribute
  30. # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
  31. #endif
  32. #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
  33. #define WL_PRIVATE __attribute__ ((visibility("hidden")))
  34. #else
  35. #define WL_PRIVATE
  36. #endif
  37. extern const struct wl_interface wl_output_interface;
  38. extern const struct wl_interface wl_surface_interface;
  39. extern const struct wl_interface xdg_popup_interface;
  40. extern const struct wl_interface zwlr_layer_surface_v1_interface;
  41. static const struct wl_interface *wlr_layer_shell_v1_unstable_v1_types[] = {
  42. NULL,
  43. NULL,
  44. NULL,
  45. NULL,
  46. &zwlr_layer_surface_v1_interface,
  47. &wl_surface_interface,
  48. &wl_output_interface,
  49. NULL,
  50. NULL,
  51. &xdg_popup_interface,
  52. };
  53. static const struct wl_message zwlr_layer_shell_v1_requests[] = {
  54. { "get_layer_surface", "no?ous", wlr_layer_shell_v1_unstable_v1_types + 4 },
  55. };
  56. WL_PRIVATE const struct wl_interface zwlr_layer_shell_v1_interface = {
  57. "zwlr_layer_shell_v1", 1,
  58. 1, zwlr_layer_shell_v1_requests,
  59. 0, NULL,
  60. };
  61. static const struct wl_message zwlr_layer_surface_v1_requests[] = {
  62. { "set_size", "uu", wlr_layer_shell_v1_unstable_v1_types + 0 },
  63. { "set_anchor", "u", wlr_layer_shell_v1_unstable_v1_types + 0 },
  64. { "set_exclusive_zone", "i", wlr_layer_shell_v1_unstable_v1_types + 0 },
  65. { "set_margin", "iiii", wlr_layer_shell_v1_unstable_v1_types + 0 },
  66. { "set_keyboard_interactivity", "u", wlr_layer_shell_v1_unstable_v1_types + 0 },
  67. { "get_popup", "o", wlr_layer_shell_v1_unstable_v1_types + 9 },
  68. { "ack_configure", "u", wlr_layer_shell_v1_unstable_v1_types + 0 },
  69. { "destroy", "", wlr_layer_shell_v1_unstable_v1_types + 0 },
  70. };
  71. static const struct wl_message zwlr_layer_surface_v1_events[] = {
  72. { "configure", "uuu", wlr_layer_shell_v1_unstable_v1_types + 0 },
  73. { "closed", "", wlr_layer_shell_v1_unstable_v1_types + 0 },
  74. };
  75. WL_PRIVATE const struct wl_interface zwlr_layer_surface_v1_interface = {
  76. "zwlr_layer_surface_v1", 1,
  77. 8, zwlr_layer_surface_v1_requests,
  78. 2, zwlr_layer_surface_v1_events,
  79. };