[Mesa-dev] [PATCH 37/38] gbm/dri: constify remaining __DRI*Extensions

Emil Velikov emil.l.velikov at gmail.com
Wed Feb 12 17:18:03 PST 2014


Already threaded as such, but stored as non-const.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gbm/backends/dri/gbm_driint.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h
index fdf694d..36a6d34 100644
--- a/src/gbm/backends/dri/gbm_driint.h
+++ b/src/gbm/backends/dri/gbm_driint.h
@@ -44,11 +44,11 @@ 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];
-- 
1.8.5.4



More information about the mesa-dev mailing list