main neuswc / libswc / drm.h
 1#ifndef SWC_DRM_H
 2#define SWC_DRM_H
 3
 4#include <stdbool.h>
 5#include <stdint.h>
 6
 7struct wl_list;
 8struct wld_buffer;
 9
10struct drm_handler {
11	void (*page_flip)(struct drm_handler *handler, uint32_t time);
12};
13
14struct swc_drm {
15	int fd;
16	uint32_t cursor_w, cursor_h;
17	struct wld_context *context;
18	struct wld_renderer *renderer;
19};
20
21bool
22drm_initialize(void);
23void
24drm_finalize(void);
25
26bool
27drm_create_screens(struct wl_list *screens);
28uint32_t
29drm_get_framebuffer(struct wld_buffer *buffer);
30
31#endif