viewporter-protocol.c 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* Generated by wayland-scanner 1.26.0 */
  2. /*
  3. * Copyright © 2013-2016 Collabora, Ltd.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining a
  6. * copy of this software and associated documentation files (the "Software"),
  7. * to deal in the Software without restriction, including without limitation
  8. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. * and/or sell copies of the Software, and to permit persons to whom the
  10. * Software is furnished to do so, subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice (including the next
  13. * paragraph) shall be included in all copies or substantial portions of the
  14. * Software.
  15. *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  19. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  21. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  22. * DEALINGS IN THE SOFTWARE.
  23. */
  24. #include <stdbool.h>
  25. #include <stdlib.h>
  26. #include <stdint.h>
  27. #include "wayland-util.h"
  28. #ifndef __has_attribute
  29. # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
  30. #endif
  31. #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
  32. #define WL_PRIVATE __attribute__ ((visibility("hidden")))
  33. #else
  34. #define WL_PRIVATE
  35. #endif
  36. extern const struct wl_interface wl_surface_interface;
  37. extern const struct wl_interface wp_viewport_interface;
  38. static const struct wl_interface *viewporter_types[] = {
  39. NULL,
  40. NULL,
  41. NULL,
  42. NULL,
  43. &wp_viewport_interface,
  44. &wl_surface_interface,
  45. };
  46. static const struct wl_message wp_viewporter_requests[] = {
  47. { "destroy", "", viewporter_types + 0 },
  48. { "get_viewport", "no", viewporter_types + 4 },
  49. };
  50. WL_PRIVATE const struct wl_interface wp_viewporter_interface = {
  51. "wp_viewporter", 1,
  52. 2, wp_viewporter_requests,
  53. 0, NULL,
  54. };
  55. static const struct wl_message wp_viewport_requests[] = {
  56. { "destroy", "", viewporter_types + 0 },
  57. { "set_source", "ffff", viewporter_types + 0 },
  58. { "set_destination", "ii", viewporter_types + 0 },
  59. };
  60. WL_PRIVATE const struct wl_interface wp_viewport_interface = {
  61. "wp_viewport", 1,
  62. 3, wp_viewport_requests,
  63. 0, NULL,
  64. };