Merge remote branch 'origin/master' into pipe-video
[mesa.git] / src / egl / wayland / wayland-drm / wayland-drm.h
1 #ifndef WAYLAND_DRM_H
2 #define WAYLAND_DRM_H
3
4 #include "egldisplay.h"
5 #include "eglimage.h"
6
7 #include <wayland-server.h>
8
9 struct wl_drm;
10
11 typedef int (*authenticate_t) (_EGLDisplay *disp, uint32_t id);
12
13 struct wl_drm_buffer {
14 struct wl_buffer buffer;
15 struct wl_drm *drm;
16 _EGLImage *image;
17 };
18
19 struct wl_drm *
20 wayland_drm_init(struct wl_display *display, _EGLDisplay *disp,
21 authenticate_t authenticate, char *device_name);
22
23 void
24 wayland_drm_destroy(struct wl_drm *drm);
25
26 #endif