If wayland->kms has been initialized in this process, allow the
kms device fd to be exported.
Change-Id: Ia3f0920cb0a5900f3c173493157e0edb09e3200a
Signed-off-by: Tony SIM <chinyeow.sim.xt@renesas.com>
wl_resource_post_event(resource, WL_KMS_FORMAT, WL_KMS_FORMAT_XRGB8888);
}
+int wayland_kms_fd_get(struct wl_kms* kms)
+{
+ return kms->fd;
+}
+
struct wl_kms_buffer *wayland_kms_buffer_get(struct wl_resource *resource)
{
if (resource == NULL)
int fd;
};
+int wayland_kms_fd_get(struct wl_kms *kms);
+
struct wl_kms_buffer *wayland_kms_buffer_get(struct wl_resource *resource);
struct wl_kms *wayland_kms_init(struct wl_display *display,