diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-02-22 16:40:20 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-02-22 16:40:20 -0800 |
commit | dde6c5e93e26f6706cd04745928ae9ad5dddfc9f (patch) | |
tree | e382a61e4af0016637efc14a05d5aa39d091e303 /src/fb.h | |
parent | 7608e85f127faf0e09b1f935654baf57b59f717f (diff) |
fb,settings,drm_fb,sd_fb: const settings_t readers
The fb_ops entrypoints and their descendants are purely readers
of the settings, so constify their settings_t instances and the
operative functions which only read settings.
Diffstat (limited to 'src/fb.h')
-rw-r--r-- | src/fb.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -30,8 +30,8 @@ typedef struct fb_page_t { /* Supply this struct to fb_new() with the appropriate context */ typedef struct fb_ops_t { - int (*setup)(settings_t *settings, setting_desc_t **next); - void * (*init)(settings_t *settings); + int (*setup)(const settings_t *settings, setting_desc_t **next); + void * (*init)(const settings_t *settings); void (*shutdown)(void *context); int (*acquire)(void *context, void *page); void (*release)(void *context); |