diff options
author | Kristian Høgsberg <[email protected]> | 2013-02-02 12:26:12 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2013-03-18 21:15:41 -0400 |
commit | de315f76a266ce51ca0638b9ea2ec3ccfd31f03b (patch) | |
tree | 2b467ec888d24b2645bbdb0e6c0cad7204d520aa /src/egl/wayland/wayland-drm/wayland-drm.h | |
parent | 2356e28452454ed3b584af9b4d28c553c2a80769 (diff) |
wayland: Add prime fd passing as a buffer sharing mechanism
Reviewed-by: Ander Conselvan de Oliveira <[email protected]>
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); |