blob: 55ce44562fedff9c11d251625569bd2a2033b63d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "common/backend.h"
#include "yasl/native/wayland.h"
struct wl_display *yasl_wayland_display_get_wl_display(struct yasl_display *d)
{
return (d && yasl_display_backend(d) == YASL_BACKEND_WAYLAND) ?
(struct wl_display *)yasl_display_get_native_handle(d) : NULL;
}
struct wl_surface *yasl_wayland_surface_get_wl_surface(struct yasl_surface *s)
{
return (s && s->display && yasl_display_backend(s->display) == YASL_BACKEND_WAYLAND) ?
(struct wl_surface *)yasl_surface_get_native_handle(s) : NULL;
}
|