#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; }