-static const struct wl_interface *types[] = {
- NULL,
- &wl_buffer_interface,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- &wl_buffer_interface,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- &wl_buffer_interface,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
-};
-
-static const struct wl_message wl_drm_requests[] = {
- { "authenticate", "u", types + 0 },
- { "create_buffer", "nuiiuu", types + 1 },
- { "create_planar_buffer", "nuiiuiiiiii", types + 7 },
- { "create_prime_buffer", "2nhiiuiiiiii", types + 18 },
-};
-
-static const struct wl_message wl_drm_events[] = {
- { "device", "s", types + 0 },
- { "format", "u", types + 0 },
- { "authenticated", "", types + 0 },
- { "capabilities", "u", types + 0 },
-};
-
-static const struct wl_interface wl_drm_interface = {
- "wl_drm", 2,
- 4, wl_drm_requests,
- 4, wl_drm_events,
-};
-
-#define USE_QUEUE 1
-
-struct wl_drm_info {
-#if USE_QUEUE
- struct wl_event_queue *wl_queue;
-#endif
- struct wl_drm* wl_drm;
- int authenticated;
- int fd;
-};
-
-static void wl_client_drm_handle_device(void *data, struct wl_drm *drm, const char *device)