diff options
Diffstat (limited to 'src/egl/wayland/wayland-drm/wayland-drm.h')
-rw-r--r-- | src/egl/wayland/wayland-drm/wayland-drm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/egl/wayland/wayland-drm/wayland-drm.h b/src/egl/wayland/wayland-drm/wayland-drm.h index 3e8f95173ac..335073a879c 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.h +++ b/src/egl/wayland/wayland-drm/wayland-drm.h @@ -82,15 +82,18 @@ struct wl_drm_buffer { struct wayland_drm_callbacks { int (*authenticate)(void *user_data, uint32_t id); - void (*reference_buffer)(void *user_data, uint32_t name, + void (*reference_buffer)(void *user_data, uint32_t name, int fd, struct wl_drm_buffer *buffer); void (*release_buffer)(void *user_data, struct wl_drm_buffer *buffer); }; +enum { WAYLAND_DRM_PRIME = 0x01 }; + struct wl_drm * wayland_drm_init(struct wl_display *display, char *device_name, - struct wayland_drm_callbacks *callbacks, void *user_data); + struct wayland_drm_callbacks *callbacks, void *user_data, + uint32_t flags); void wayland_drm_uninit(struct wl_drm *drm); |