diff options
Diffstat (limited to 'src/fb.h')
-rw-r--r-- | src/fb.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,7 +34,7 @@ typedef struct fb_page_t { /* Supply this struct to fb_new() with the appropriate context */ typedef struct fb_ops_t { int (*setup)(const settings_t *settings, setting_desc_t **next); - void * (*init)(const settings_t *settings); + int (*init)(const settings_t *settings, void **res_context); void (*shutdown)(void *context); int (*acquire)(void *context, void *page); void (*release)(void *context); @@ -49,7 +49,7 @@ fb_page_t * fb_page_get(fb_t *fb); void fb_page_put(fb_t *fb, fb_page_t *page); void fb_free(fb_t *fb); void fb_get_put_pages_count(fb_t *fb, unsigned *count); -fb_t * fb_new(const fb_ops_t *ops, settings_t *settings, int n_pages); +int fb_new(const fb_ops_t *ops, settings_t *settings, int n_pages, fb_t **res_fb); int fb_flip(fb_t *fb); void fb_fragment_divide(fb_fragment_t *fragment, unsigned n_fragments, fb_fragment_t fragments[]); int fb_fragment_slice_single(const fb_fragment_t *fragment, unsigned n_fragments, unsigned num, fb_fragment_t *res_fragment); |