summaryrefslogtreecommitdiff
path: root/src/drm_fb.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-01-01 22:43:06 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-01-01 22:43:06 -0800
commit9618a7cca221e8959a920ec13148a7e6bd2e9b7a (patch)
tree0bba74477176e9b66d7da1963792d0e4fb4a16e2 /src/drm_fb.h
parent9e5f4de8ecc1408fe8b65f5eee442a38322b8ac8 (diff)
drm_fb: implement drm fb backend
Largely mechanical copying of the drm code into the new fb_ops_t abstraction. Dormant for now.
Diffstat (limited to 'src/drm_fb.h')
-rw-r--r--src/drm_fb.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/drm_fb.h b/src/drm_fb.h
new file mode 100644
index 0000000..c283362
--- /dev/null
+++ b/src/drm_fb.h
@@ -0,0 +1,12 @@
+#ifndef _DRM_FB_H
+#define _DRM_FB_H
+
+#include <stdint.h>
+#include <xf86drmMode.h>
+
+typedef struct drm_fb_t drm_fb_t;
+
+drm_fb_t * drm_fb_new(int drm_fd, uint32_t crtc_id, uint32_t *connectors, int n_connectors, drmModeModeInfoPtr mode);
+void drm_fb_free(drm_fb_t *fb);
+
+#endif
© All Rights Reserved