Blender V4.3
wayland_dynload_egl.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
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifdef WAYLAND_DYNLOAD_FN
20#elif defined(WAYLAND_DYNLOAD_IFACE)
21/* No interfaces. */
22#else
23
24/* Header guard. */
25# if !defined(__WAYLAND_DYNLOAD_EGL_H__) && !defined(WAYLAND_DYNLOAD_VALIDATE)
26# define __WAYLAND_DYNLOAD_EGL_H__
27
28# include <wayland-egl-core.h>
30
31/* Support validating declarations against the header. */
32# ifndef WAYLAND_DYNLOAD_VALIDATE
33# define WL_DYN_FN(a) (*a)
34# else
35# define WL_DYN_FN(a) (a)
36# endif
37
38# ifndef WAYLAND_DYNLOAD_VALIDATE
40# endif
41
42 struct wl_egl_window *WL_DYN_FN(wl_egl_window_create)(struct wl_surface *surface,
43 int width,
44 int height);
45 void WL_DYN_FN(wl_egl_window_destroy)(struct wl_egl_window *egl_window);
47 struct wl_egl_window *egl_window, int width, int height, int dx, int dy);
48 void WL_DYN_FN(wl_egl_window_get_attached_size)(struct wl_egl_window *egl_window,
49 int *width,
50 int *height);
51
52# ifndef WAYLAND_DYNLOAD_VALIDATE
53};
54# endif
55# undef WL_DYN_FN
56
57# ifndef WAYLAND_DYNLOAD_VALIDATE
58# define wl_egl_window_create(...) (*wayland_dynload_egl.wl_egl_window_create)(__VA_ARGS__)
59# define wl_egl_window_destroy(...) (*wayland_dynload_egl.wl_egl_window_destroy)(__VA_ARGS__)
60# define wl_egl_window_resize(...) (*wayland_dynload_egl.wl_egl_window_resize)(__VA_ARGS__)
61# define wl_egl_window_get_attached_size(...) \
62 (*wayland_dynload_egl.wl_egl_window_get_attached_size)(__VA_ARGS__)
63
64# endif /* !WAYLAND_DYNLOAD_VALIDATE */
65# endif /* !defined(WAYLAND_DYNLOAD_FN) && !defined(WAYLAND_DYNLOAD_IFACE) */
66#endif /* !defined(__WAYLAND_DYNLOAD_EGL_H__) && !defined(WAYLAND_DYNLOAD_VALIDATE) */
67
68#ifdef __cplusplus
69}
70#endif
#define wl_surface
#define WAYLAND_DYNLOAD_FN(symbol)
#define wl_egl_window_resize(...)
#define wl_egl_window_create(...)
#define WL_DYN_FN(a)
struct WaylandDynload_EGL wayland_dynload_egl
#define wl_egl_window_destroy(...)
#define wl_egl_window_get_attached_size(...)