forked from swaywm/wlroots
/
wlr_drm.h
36 lines (28 loc) · 795 Bytes
/
wlr_drm.h
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
26
27
28
29
30
31
32
33
34
35
36
/*
* This an unstable interface of wlroots. No guarantees are made regarding the
* future consistency of this API.
*/
#ifndef WLR_USE_UNSTABLE
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
#endif
#ifndef WLR_TYPES_WLR_DRM_H
#define WLR_TYPES_WLR_DRM_H
#include <wayland-server-protocol.h>
struct wlr_renderer;
/**
* A stub implementation of Mesa's wl_drm protocol.
*
* It only implements the minimum necessary for modern clients to behave
* properly. In particular, flink handles are left unimplemented.
*/
struct wlr_drm {
struct wl_global *global;
char *node_name;
struct {
struct wl_signal destroy;
} events;
struct wl_listener display_destroy;
};
struct wlr_drm *wlr_drm_create(struct wl_display *display,
struct wlr_renderer *renderer);
#endif