1
0

presentation-time-protocol.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* Generated by wayland-scanner 1.26.0 */
  2. /*
  3. * Copyright © 2013-2014 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_output_interface;
  37. extern const struct wl_interface wl_surface_interface;
  38. extern const struct wl_interface wp_presentation_feedback_interface;
  39. static const struct wl_interface *presentation_time_types[] = {
  40. NULL,
  41. NULL,
  42. NULL,
  43. NULL,
  44. NULL,
  45. NULL,
  46. NULL,
  47. &wl_surface_interface,
  48. &wp_presentation_feedback_interface,
  49. &wl_output_interface,
  50. };
  51. static const struct wl_message wp_presentation_requests[] = {
  52. { "destroy", "", presentation_time_types + 0 },
  53. { "feedback", "on", presentation_time_types + 7 },
  54. };
  55. static const struct wl_message wp_presentation_events[] = {
  56. { "clock_id", "u", presentation_time_types + 0 },
  57. };
  58. WL_PRIVATE const struct wl_interface wp_presentation_interface = {
  59. "wp_presentation", 2,
  60. 2, wp_presentation_requests,
  61. 1, wp_presentation_events,
  62. };
  63. static const struct wl_message wp_presentation_feedback_events[] = {
  64. { "sync_output", "o", presentation_time_types + 9 },
  65. { "presented", "uuuuuuu", presentation_time_types + 0 },
  66. { "discarded", "", presentation_time_types + 0 },
  67. };
  68. WL_PRIVATE const struct wl_interface wp_presentation_feedback_interface = {
  69. "wp_presentation_feedback", 2,
  70. 0, NULL,
  71. 3, wp_presentation_feedback_events,
  72. };