Blender V5.3
wayland_dynload_client.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifdef WAYLAND_DYNLOAD_FN
46#elif defined(WAYLAND_DYNLOAD_IFACE)
47WAYLAND_DYNLOAD_IFACE(wl_buffer_interface)
48WAYLAND_DYNLOAD_IFACE(wl_callback_interface)
49WAYLAND_DYNLOAD_IFACE(wl_compositor_interface)
50WAYLAND_DYNLOAD_IFACE(wl_data_device_interface)
51WAYLAND_DYNLOAD_IFACE(wl_data_device_manager_interface)
52WAYLAND_DYNLOAD_IFACE(wl_data_source_interface)
53WAYLAND_DYNLOAD_IFACE(wl_keyboard_interface)
54WAYLAND_DYNLOAD_IFACE(wl_output_interface)
55WAYLAND_DYNLOAD_IFACE(wl_pointer_interface)
56WAYLAND_DYNLOAD_IFACE(wl_region_interface)
57WAYLAND_DYNLOAD_IFACE(wl_registry_interface)
58WAYLAND_DYNLOAD_IFACE(wl_seat_interface)
59WAYLAND_DYNLOAD_IFACE(wl_shm_interface)
60WAYLAND_DYNLOAD_IFACE(wl_shm_pool_interface)
61WAYLAND_DYNLOAD_IFACE(wl_subcompositor_interface)
62WAYLAND_DYNLOAD_IFACE(wl_subsurface_interface)
63WAYLAND_DYNLOAD_IFACE(wl_surface_interface)
64WAYLAND_DYNLOAD_IFACE(wl_touch_interface)
65#else
66
67/* Header guard. */
68# if !defined(__WAYLAND_DYNLOAD_CLIENT_H__) || defined(WAYLAND_DYNLOAD_VALIDATE)
69# define __WAYLAND_DYNLOAD_CLIENT_H__
70
71# ifndef WAYLAND_DYNLOAD_VALIDATE
72# include <wayland-client-core.h>
74# endif
75
76/* Support validating declarations against the header. */
77# ifndef WAYLAND_DYNLOAD_VALIDATE
78# define WL_DYN_FN(a) (*a)
79# else
80# define WL_DYN_FN(a) (a)
81# endif
82
83# ifndef WAYLAND_DYNLOAD_VALIDATE
85# endif
86 struct wl_display *WL_DYN_FN(wl_display_connect)(const char *name);
92 struct wl_event_queue *queue);
94 struct wl_event_queue *queue);
95 struct wl_event_queue *WL_DYN_FN(wl_display_create_queue)(struct wl_display *display);
96 int WL_DYN_FN(wl_display_get_fd)(struct wl_display *display);
98 const struct wl_interface **interface,
99 uint32_t *id);
102 struct wl_event_queue *queue);
105 int WL_DYN_FN(wl_display_flush)(struct wl_display *display);
107 void WL_DYN_FN(wl_event_queue_destroy)(struct wl_event_queue *queue);
109 int WL_DYN_FN(wl_proxy_add_listener)(struct wl_proxy *proxy,
110 void (**implementation)(void),
111 void *data);
113 void WL_DYN_FN(wl_proxy_destroy)(struct wl_proxy *proxy);
114 void WL_DYN_FN(wl_proxy_wrapper_destroy)(void *proxy_wrapper);
115 struct wl_proxy *WL_DYN_FN(wl_proxy_marshal_flags)(struct wl_proxy *proxy,
116 uint32_t opcode,
117 const struct wl_interface *interface,
118 uint32_t version,
119 uint32_t flags,
120 ...);
121 struct wl_proxy *WL_DYN_FN(wl_proxy_marshal_array_flags)(struct wl_proxy *proxy,
122 uint32_t opcode,
123 const struct wl_interface *interface,
124 uint32_t version,
125 uint32_t flags,
126 union wl_argument *args);
127 void WL_DYN_FN(wl_proxy_set_queue)(struct wl_proxy *proxy, struct wl_event_queue *queue);
128 void WL_DYN_FN(wl_proxy_set_user_data)(struct wl_proxy *proxy, void *user_data);
129 void *WL_DYN_FN(wl_proxy_get_user_data)(struct wl_proxy *proxy);
130 uint32_t WL_DYN_FN(wl_proxy_get_version)(struct wl_proxy *proxy);
131 const char *const *WL_DYN_FN(wl_proxy_get_tag)(struct wl_proxy *proxy);
132 void WL_DYN_FN(wl_proxy_set_tag)(struct wl_proxy *proxy, const char *const *tag);
133
134# ifndef WAYLAND_DYNLOAD_VALIDATE
135};
136# endif
137# undef WL_DYN_FN
138
139# ifndef WAYLAND_DYNLOAD_VALIDATE
140# define wl_display_connect(...) (*wayland_dynload_client.wl_display_connect)(__VA_ARGS__)
141# define wl_display_disconnect(...) \
142 (*wayland_dynload_client.wl_display_disconnect)(__VA_ARGS__)
143# define wl_display_dispatch(...) (*wayland_dynload_client.wl_display_dispatch)(__VA_ARGS__)
144# define wl_display_dispatch_pending(...) \
145 (*wayland_dynload_client.wl_display_dispatch_pending)(__VA_ARGS__)
146# define wl_display_dispatch_queue(...) \
147 (*wayland_dynload_client.wl_display_dispatch_queue)(__VA_ARGS__)
148# define wl_display_dispatch_queue_pending(...) \
149 (*wayland_dynload_client.wl_display_dispatch_queue_pending)(__VA_ARGS__)
150# define wl_display_create_queue(...) \
151 (*wayland_dynload_client.wl_display_create_queue)(__VA_ARGS__)
152# define wl_display_get_fd(...) (*wayland_dynload_client.wl_display_get_fd)(__VA_ARGS__)
153# define wl_display_get_protocol_error(...) \
154 (*wayland_dynload_client.wl_display_get_protocol_error)(__VA_ARGS__)
155# define wl_display_prepare_read(...) \
156 (*wayland_dynload_client.wl_display_prepare_read)(__VA_ARGS__)
157# define wl_display_prepare_read_queue(...) \
158 (*wayland_dynload_client.wl_display_prepare_read_queue)(__VA_ARGS__)
159# define wl_display_read_events(...) \
160 (*wayland_dynload_client.wl_display_read_events)(__VA_ARGS__)
161# define wl_display_cancel_read(...) \
162 (*wayland_dynload_client.wl_display_cancel_read)(__VA_ARGS__)
163# define wl_display_roundtrip(...) (*wayland_dynload_client.wl_display_roundtrip)(__VA_ARGS__)
164# define wl_display_flush(...) (*wayland_dynload_client.wl_display_flush)(__VA_ARGS__)
165# define wl_display_get_error(...) (*wayland_dynload_client.wl_display_get_error)(__VA_ARGS__)
166# define wl_event_queue_destroy(...) \
167 (*wayland_dynload_client.wl_event_queue_destroy)(__VA_ARGS__)
168# define wl_log_set_handler_client(...) \
169 (*wayland_dynload_client.wl_log_set_handler_client)(__VA_ARGS__)
170# define wl_proxy_add_listener(...) \
171 (*wayland_dynload_client.wl_proxy_add_listener)(__VA_ARGS__)
172# define wl_proxy_create_wrapper(...) \
173 (*wayland_dynload_client.wl_proxy_create_wrapper)(__VA_ARGS__)
174# define wl_proxy_destroy(...) (*wayland_dynload_client.wl_proxy_destroy)(__VA_ARGS__)
175# define wl_proxy_wrapper_destroy(...) \
176 (*wayland_dynload_client.wl_proxy_wrapper_destroy)(__VA_ARGS__)
177# define wl_proxy_marshal_flags(...) \
178 (*wayland_dynload_client.wl_proxy_marshal_flags)(__VA_ARGS__)
179# define wl_proxy_marshal_array_flags(...) \
180 (*wayland_dynload_client.wl_proxy_marshal_array_flags)(__VA_ARGS__)
181# define wl_proxy_set_queue(...) (*wayland_dynload_client.wl_proxy_set_queue)(__VA_ARGS__)
182# define wl_proxy_set_user_data(...) \
183 (*wayland_dynload_client.wl_proxy_set_user_data)(__VA_ARGS__)
184# define wl_proxy_get_user_data(...) \
185 (*wayland_dynload_client.wl_proxy_get_user_data)(__VA_ARGS__)
186# define wl_proxy_get_version(...) (*wayland_dynload_client.wl_proxy_get_version)(__VA_ARGS__)
187# define wl_proxy_get_tag(...) (*wayland_dynload_client.wl_proxy_get_tag)(__VA_ARGS__)
188# define wl_proxy_set_tag(...) (*wayland_dynload_client.wl_proxy_set_tag)(__VA_ARGS__)
189
190# endif /* !WAYLAND_DYNLOAD_VALIDATE */
191# endif /* !defined(__WAYLAND_DYNLOAD_CLIENT_H__) || defined(WAYLAND_DYNLOAD_VALIDATE) */
192#endif /* !defined(WAYLAND_DYNLOAD_FN) && !defined(WAYLAND_DYNLOAD_IFACE) */
193
194#ifdef __cplusplus
195}
196#endif
#define wl_display
int WL_DYN_FN wl_proxy_add_listener(struct wl_proxy *proxy, void(**implementation)(void), void *data)
uint32_t WL_DYN_FN wl_proxy_get_version(struct wl_proxy *proxy)
void WL_DYN_FN wl_display_disconnect(struct wl_display *display)
void WL_DYN_FN wl_proxy_wrapper_destroy(void *proxy_wrapper)
uint32_t WL_DYN_FN wl_display_get_protocol_error(struct wl_display *display, const struct wl_interface **interface, uint32_t *id)
int WL_DYN_FN wl_display_dispatch(struct wl_display *display)
void WL_DYN_FN wl_proxy_set_user_data(struct wl_proxy *proxy, void *user_data)
void WL_DYN_FN wl_event_queue_destroy(struct wl_event_queue *queue)
void WL_DYN_FN wl_log_set_handler_client(wl_log_func_t)
struct wl_display *WL_DYN_FN wl_display_connect(const char *name)
const char *const *WL_DYN_FN wl_proxy_get_tag(struct wl_proxy *proxy)
void WL_DYN_FN wl_display_cancel_read(struct wl_display *display)
void WL_DYN_FN wl_proxy_set_queue(struct wl_proxy *proxy, struct wl_event_queue *queue)
struct wl_event_queue *WL_DYN_FN wl_display_create_queue(struct wl_display *display)
struct wl_proxy *WL_DYN_FN wl_proxy_marshal_array_flags(struct wl_proxy *proxy, uint32_t opcode, const struct wl_interface *interface, uint32_t version, uint32_t flags, union wl_argument *args)
struct wl_proxy *WL_DYN_FN wl_proxy_marshal_flags(struct wl_proxy *proxy, uint32_t opcode, const struct wl_interface *interface, uint32_t version, uint32_t flags,...)
int WL_DYN_FN wl_display_get_fd(struct wl_display *display)
int WL_DYN_FN wl_display_dispatch_queue_pending(struct wl_display *display, struct wl_event_queue *queue)
void WL_DYN_FN wl_proxy_set_tag(struct wl_proxy *proxy, const char *const *tag)
void WL_DYN_FN wl_proxy_destroy(struct wl_proxy *proxy)
int WL_DYN_FN wl_display_prepare_read(struct wl_display *display)
int WL_DYN_FN wl_display_dispatch_queue(struct wl_display *display, struct wl_event_queue *queue)
void *WL_DYN_FN wl_proxy_create_wrapper(void *proxy)
int WL_DYN_FN wl_display_get_error(struct wl_display *display)
int WL_DYN_FN wl_display_dispatch_pending(struct wl_display *display)
int WL_DYN_FN wl_display_flush(struct wl_display *display)
int WL_DYN_FN wl_display_read_events(struct wl_display *display)
int WL_DYN_FN wl_display_roundtrip(struct wl_display *display)
int WL_DYN_FN wl_display_prepare_read_queue(struct wl_display *display, struct wl_event_queue *queue)
void *WL_DYN_FN wl_proxy_get_user_data(struct wl_proxy *proxy)
#define WAYLAND_DYNLOAD_FN(symbol)
#define WAYLAND_DYNLOAD_IFACE(symbol)
#define wl_proxy_marshal_array_flags(...)
#define wl_proxy_get_tag(...)
#define wl_proxy_add_listener(...)
#define wl_display_dispatch_queue(...)
#define wl_display_connect(...)
#define wl_log_set_handler_client(...)
#define wl_display_dispatch_pending(...)
#define wl_proxy_set_tag(...)
#define wl_proxy_create_wrapper(...)
#define wl_proxy_get_user_data(...)
#define wl_display_get_error(...)
#define wl_display_cancel_read(...)
#define WL_DYN_FN(a)
#define wl_display_dispatch(...)
#define wl_display_dispatch_queue_pending(...)
#define wl_display_get_fd(...)
#define wl_display_prepare_read_queue(...)
#define wl_display_prepare_read(...)
#define wl_display_create_queue(...)
#define wl_proxy_destroy(...)
#define wl_proxy_set_user_data(...)
#define wl_proxy_wrapper_destroy(...)
#define wl_display_flush(...)
#define wl_display_get_protocol_error(...)
#define wl_proxy_get_version(...)
#define wl_display_disconnect(...)
#define wl_display_read_events(...)
struct WaylandDynload_Client wayland_dynload_client
#define wl_proxy_set_queue(...)
#define wl_proxy_marshal_flags(...)
#define wl_display_roundtrip(...)
#define wl_event_queue_destroy(...)