diff options
author | Emil Velikov <[email protected]> | 2014-03-16 00:26:53 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-04-28 19:13:38 +0100 |
commit | 5457caa58c048e2df71c7ebc036d5ca010d576b6 (patch) | |
tree | 9dd6ac456f2a4990cbe27a1b71eaba28af50f6fb /src/gbm/backends/dri/gbm_driint.h | |
parent | c812557a0e1d6242362460ba6a3aa2012ea9f4b1 (diff) |
gbm: cleanup __DRI*extension handling
Use designated initialisers, store all extension pointers as const and use
a const __DRIextensions array over assigning each element individually.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gbm/backends/dri/gbm_driint.h')
-rw-r--r-- | src/gbm/backends/dri/gbm_driint.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h index fdf694dce06..9c4392de05f 100644 --- a/src/gbm/backends/dri/gbm_driint.h +++ b/src/gbm/backends/dri/gbm_driint.h @@ -44,14 +44,14 @@ struct gbm_dri_device { __DRIscreen *screen; - __DRIcoreExtension *core; - __DRIdri2Extension *dri2; - __DRIimageExtension *image; - __DRI2flushExtension *flush; - __DRIdri2LoaderExtension *loader; + const __DRIcoreExtension *core; + const __DRIdri2Extension *dri2; + const __DRIimageExtension *image; + const __DRI2flushExtension *flush; + const __DRIdri2LoaderExtension *loader; const __DRIconfig **driver_configs; - const __DRIextension *extensions[5]; + const __DRIextension **extensions; const __DRIextension **driver_extensions; __DRIimage *(*lookup_image)(__DRIscreen *screen, void *image, void *data); |