From 9e56788affedd6b01df6764732a4ba786f7a47f3 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 16 Feb 2021 21:51:33 -0800 Subject: *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. --- src/drm_fb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/drm_fb.c') 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, -- cgit v1.2.1