From 9618a7cca221e8959a920ec13148a7e6bd2e9b7a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 1 Jan 2018 22:43:06 -0800 Subject: drm_fb: implement drm fb backend Largely mechanical copying of the drm code into the new fb_ops_t abstraction. Dormant for now. --- src/drm_fb.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/drm_fb.h (limited to 'src/drm_fb.h') 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 +#include + +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 -- cgit v1.2.1