typedef struct vout_window_t vout_window_t;
typedef struct vout_window_sys_t vout_window_sys_t;
+struct wl_display;
+struct wl_surface;
/**
* Window handle type
VOUT_WINDOW_TYPE_HWND,
VOUT_WINDOW_TYPE_NSOBJECT,
VOUT_WINDOW_TYPE_ANDROID_NATIVE,
+ VOUT_WINDOW_TYPE_WAYLAND,
};
/**
uint32_t xid; /* X11 windows ID */
void *nsobject; /* Mac OSX view object */
void *anativewindow; /* Android native window. */
+ struct wl_surface *wl; /* Wayland surface */
} handle;
/* display server (mandatory) */
union {
char *x11; /* X11 display (NULL = use default) */
+ struct wl_display *wl; /* Wayland struct wl_display pointer */
} display;
/* Control on the module (mandatory)
type = "vout window anative";
window->handle.anativewindow = NULL;
break;
+ case VOUT_WINDOW_TYPE_WAYLAND:
+ type = "vout surface wl";
+ window->handle.wl = NULL;
+ window->display.wl = NULL;
+ break;
default:
assert(0);
}