| 1 |
#ifndef DYLIBLOAD_WRAPPER_WAYLAND_CURSOR |
| 2 |
#define DYLIBLOAD_WRAPPER_WAYLAND_CURSOR |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
#include <stdint.h> |
| 9 |
|
| 10 |
#define wl_cursor_theme_load wl_cursor_theme_load_dylibloader_orig_wayland_cursor |
| 11 |
#define wl_cursor_theme_destroy wl_cursor_theme_destroy_dylibloader_orig_wayland_cursor |
| 12 |
#define wl_cursor_theme_get_cursor wl_cursor_theme_get_cursor_dylibloader_orig_wayland_cursor |
| 13 |
#define wl_cursor_image_get_buffer wl_cursor_image_get_buffer_dylibloader_orig_wayland_cursor |
| 14 |
#define wl_cursor_frame wl_cursor_frame_dylibloader_orig_wayland_cursor |
| 15 |
#define wl_cursor_frame_and_duration wl_cursor_frame_and_duration_dylibloader_orig_wayland_cursor |
| 16 |
#include "./thirdparty/linuxbsd_headers/wayland/wayland-cursor.h" |
| 17 |
#undef wl_cursor_theme_load |
| 18 |
#undef wl_cursor_theme_destroy |
| 19 |
#undef wl_cursor_theme_get_cursor |
| 20 |
#undef wl_cursor_image_get_buffer |
| 21 |
#undef wl_cursor_frame |
| 22 |
#undef wl_cursor_frame_and_duration |
| 23 |
#ifdef __cplusplus |
| 24 |
extern "C" { |
| 25 |
#endif |
| 26 |
#define wl_cursor_theme_load wl_cursor_theme_load_dylibloader_wrapper_wayland_cursor |
| 27 |
#define wl_cursor_theme_destroy wl_cursor_theme_destroy_dylibloader_wrapper_wayland_cursor |
| 28 |
#define wl_cursor_theme_get_cursor wl_cursor_theme_get_cursor_dylibloader_wrapper_wayland_cursor |
| 29 |
#define wl_cursor_image_get_buffer wl_cursor_image_get_buffer_dylibloader_wrapper_wayland_cursor |
| 30 |
#define wl_cursor_frame wl_cursor_frame_dylibloader_wrapper_wayland_cursor |
| 31 |
#define wl_cursor_frame_and_duration wl_cursor_frame_and_duration_dylibloader_wrapper_wayland_cursor |
| 32 |
extern struct wl_cursor_theme* (*wl_cursor_theme_load_dylibloader_wrapper_wayland_cursor)(const char*, int,struct wl_shm*); |
| 33 |
extern void (*wl_cursor_theme_destroy_dylibloader_wrapper_wayland_cursor)(struct wl_cursor_theme*); |
| 34 |
extern struct wl_cursor* (*wl_cursor_theme_get_cursor_dylibloader_wrapper_wayland_cursor)(struct wl_cursor_theme*,const char*); |
| 35 |
extern struct wl_buffer* (*wl_cursor_image_get_buffer_dylibloader_wrapper_wayland_cursor)(struct wl_cursor_image*); |
| 36 |
extern int (*wl_cursor_frame_dylibloader_wrapper_wayland_cursor)(struct wl_cursor*, uint32_t); |
| 37 |
extern int (*wl_cursor_frame_and_duration_dylibloader_wrapper_wayland_cursor)(struct wl_cursor*, uint32_t, uint32_t*); |
| 38 |
int initialize_wayland_cursor(int verbose); |
| 39 |
#ifdef __cplusplus |
| 40 |
} |
| 41 |
#endif |
| 42 |
#endif |