22 #ifndef SDL_waylanddyn_h_
23 #define SDL_waylanddyn_h_
25 #include "../../SDL_internal.h"
32 struct wl_event_queue;
38 #include "wayland-cursor.h"
39 #include "wayland-util.h"
40 #include "xkbcommon/xkbcommon.h"
50 #define SDL_WAYLAND_MODULE(modname) extern int SDL_WAYLAND_HAVE_##modname;
51 #define SDL_WAYLAND_SYM(rc,fn,params) \
52 typedef rc (*SDL_DYNWAYLANDFN_##fn) params; \
53 extern SDL_DYNWAYLANDFN_##fn WAYLAND_##fn;
54 #define SDL_WAYLAND_INTERFACE(iface) extern const struct wl_interface *WAYLAND_##iface;
62 #ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
64 #ifdef _WAYLAND_CLIENT_H
65 #error Do not include wayland-client ahead of SDL_waylanddyn.h in dynamic loading mode
72 #define wl_proxy_create (*WAYLAND_wl_proxy_create)
73 #define wl_proxy_destroy (*WAYLAND_wl_proxy_destroy)
74 #define wl_proxy_marshal (*WAYLAND_wl_proxy_marshal)
75 #define wl_proxy_set_user_data (*WAYLAND_wl_proxy_set_user_data)
76 #define wl_proxy_get_user_data (*WAYLAND_wl_proxy_get_user_data)
77 #define wl_proxy_add_listener (*WAYLAND_wl_proxy_add_listener)
78 #define wl_proxy_marshal_constructor (*WAYLAND_wl_proxy_marshal_constructor)
79 #define wl_proxy_marshal_constructor_versioned (*WAYLAND_wl_proxy_marshal_constructor_versioned)
81 #define wl_seat_interface (*WAYLAND_wl_seat_interface)
82 #define wl_surface_interface (*WAYLAND_wl_surface_interface)
83 #define wl_shm_pool_interface (*WAYLAND_wl_shm_pool_interface)
84 #define wl_buffer_interface (*WAYLAND_wl_buffer_interface)
85 #define wl_registry_interface (*WAYLAND_wl_registry_interface)
86 #define wl_shell_surface_interface (*WAYLAND_wl_shell_surface_interface)
87 #define wl_region_interface (*WAYLAND_wl_region_interface)
88 #define wl_pointer_interface (*WAYLAND_wl_pointer_interface)
89 #define wl_keyboard_interface (*WAYLAND_wl_keyboard_interface)
90 #define wl_compositor_interface (*WAYLAND_wl_compositor_interface)
91 #define wl_output_interface (*WAYLAND_wl_output_interface)
92 #define wl_shell_interface (*WAYLAND_wl_shell_interface)
93 #define wl_shm_interface (*WAYLAND_wl_shm_interface)
94 #define wl_data_device_interface (*WAYLAND_wl_data_device_interface)
95 #define wl_data_offer_interface (*WAYLAND_wl_data_offer_interface)
96 #define wl_data_source_interface (*WAYLAND_wl_data_source_interface)
97 #define wl_data_device_manager_interface (*WAYLAND_wl_data_device_manager_interface)
101 #include "wayland-client-core.h"
102 #include "wayland-client-protocol.h"
103 #include "wayland-egl.h"
void SDL_WAYLAND_UnloadSymbols(void)
int SDL_WAYLAND_LoadSymbols(void)