summaryrefslogtreecommitdiff
path: root/src/egl/wayland/wayland-drm/wayland-drm.h
blob: 311e68129742f383d43f8334ba746d0ed3742898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef WAYLAND_DRM_H
#define WAYLAND_DRM_H

#include "egldisplay.h"
#include "eglimage.h"

#include <wayland-server.h>
#include "wayland-drm-server-protocol.h"

typedef int (*authenticate_t) (_EGLDisplay *disp, uint32_t id);

struct wl_drm_buffer {
	struct wl_buffer buffer;
	struct wl_drm *drm;
	_EGLImage *image;
};

struct wl_drm *
wayland_drm_init(struct wl_display *display, _EGLDisplay *disp,
	    authenticate_t authenticate, char *device_name);

void
wayland_drm_destroy(struct wl_drm *drm);

#endif