empty-client.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /* SCANNER TEST */
  2. #ifndef EMPTY_CLIENT_PROTOCOL_H
  3. #define EMPTY_CLIENT_PROTOCOL_H
  4. #include <stdint.h>
  5. #include <stddef.h>
  6. #include "wayland-client.h"
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /**
  11. * @page page_empty The empty protocol
  12. * @section page_ifaces_empty Interfaces
  13. * - @subpage page_iface_empty -
  14. */
  15. struct empty;
  16. #ifndef EMPTY_INTERFACE
  17. #define EMPTY_INTERFACE
  18. /**
  19. * @page page_iface_empty empty
  20. * @section page_iface_empty_api API
  21. * See @ref iface_empty.
  22. */
  23. /**
  24. * @defgroup iface_empty The empty interface
  25. */
  26. extern const struct wl_interface empty_interface;
  27. #endif
  28. #define EMPTY_EMPTY 0
  29. /**
  30. * @ingroup iface_empty
  31. */
  32. #define EMPTY_EMPTY_SINCE_VERSION 1
  33. /** @ingroup iface_empty */
  34. static inline void
  35. empty_set_user_data(struct empty *empty, void *user_data)
  36. {
  37. wl_proxy_set_user_data((struct wl_proxy *) empty, user_data);
  38. }
  39. /** @ingroup iface_empty */
  40. static inline void *
  41. empty_get_user_data(struct empty *empty)
  42. {
  43. return wl_proxy_get_user_data((struct wl_proxy *) empty);
  44. }
  45. static inline uint32_t
  46. empty_get_version(struct empty *empty)
  47. {
  48. return wl_proxy_get_version((struct wl_proxy *) empty);
  49. }
  50. /** @ingroup iface_empty */
  51. static inline void
  52. empty_destroy(struct empty *empty)
  53. {
  54. wl_proxy_destroy((struct wl_proxy *) empty);
  55. }
  56. /**
  57. * @ingroup iface_empty
  58. */
  59. static inline void
  60. empty_empty(struct empty *empty)
  61. {
  62. wl_proxy_marshal_flags((struct wl_proxy *) empty,
  63. EMPTY_EMPTY, NULL, wl_proxy_get_version((struct wl_proxy *) empty), 0);
  64. }
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #endif