diff options
| author | Vito Caputo <vcaputo@pengaru.com> | 2021-02-16 21:51:33 -0800 | 
|---|---|---|
| committer | Vito Caputo <vcaputo@pengaru.com> | 2021-02-16 21:51:33 -0800 | 
| commit | 9e56788affedd6b01df6764732a4ba786f7a47f3 (patch) | |
| tree | 89243765d939c4477de95435ab774f307fdb8f3c /src/drm_fb.c | |
| parent | 11b87c843e20f66bd68e02353ba4a1072e1230a6 (diff) | |
*fb: plumb outer fb_t down to fb_ops_t methods
None of the existing fb_ops_t implementations need this, but due
to how GTK+ works, the GTK+ frontend using librototiller will likely
want to wire up calling fb_flip() on the fb from behind fb_ops.
Diffstat (limited to 'src/drm_fb.c')
| -rw-r--r-- | src/drm_fb.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/drm_fb.c b/src/drm_fb.c index a25c889..9d70b91 100644 --- a/src/drm_fb.c +++ b/src/drm_fb.c @@ -422,7 +422,7 @@ _err:  } -static void drm_fb_shutdown(void *context) +static void drm_fb_shutdown(fb_t *fb, void *context)  {  	drm_fb_t	*c = context; @@ -435,7 +435,7 @@ static void drm_fb_shutdown(void *context)  } -static int drm_fb_acquire(void *context, void *page) +static int drm_fb_acquire(fb_t *fb, void *context, void *page)  {  	drm_fb_t	*c = context;  	drm_fb_page_t	*p = page; @@ -444,13 +444,13 @@ static int drm_fb_acquire(void *context, void *page)  } -static void drm_fb_release(void *context) +static void drm_fb_release(fb_t *fb, void *context)  {  	/* TODO restore the existing mode @ last acquire? */  } -static void * drm_fb_page_alloc(void *context, fb_page_t *res_page) +static void * drm_fb_page_alloc(fb_t *fb, void *context, fb_page_t *res_page)  {  	struct drm_mode_create_dumb	create_dumb = { .bpp = 32 };  	struct drm_mode_map_dumb	map_dumb = {}; @@ -493,7 +493,7 @@ static void * drm_fb_page_alloc(void *context, fb_page_t *res_page)  } -static int drm_fb_page_free(void *context, void *page) +static int drm_fb_page_free(fb_t *fb, void *context, void *page)  {  	struct drm_mode_destroy_dumb	destroy_dumb = {};  	drm_fb_t			*c = context; @@ -511,7 +511,7 @@ static int drm_fb_page_free(void *context, void *page)  } -static int drm_fb_page_flip(void *context, void *page) +static int drm_fb_page_flip(fb_t *fb, void *context, void *page)  {  	drmEventContext	drm_ev_ctx = {  				.version = DRM_EVENT_CONTEXT_VERSION, | 
