egl: inline _eglGetDriverProc() into eglGetProcAddress()
[mesa.git] / src / egl / main / egldriver.h
index 933dd7422741615f0c3d18158d74413f9f89d8d2..9cb6323a2e39427e1d1bc1a047f33817832bc579 100644 (file)
@@ -55,14 +55,13 @@ extern "C" {
 
 
 /**
- * Define the driver typecast functions for _EGLDriver, _EGLDisplay,
+ * Define the driver typecast functions for _EGLDisplay,
  * _EGLContext, _EGLSurface, and _EGLConfig.
  *
  * Note that this macro defines several functions and should not be ended with
  * a semicolon when used.
  */
 #define _EGL_DRIVER_STANDARD_TYPECASTS(drvname)                            \
-   _EGL_DRIVER_TYPECAST(drvname ## _driver, _EGLDriver, obj)               \
    /* note that this is not a direct cast */                               \
    _EGL_DRIVER_TYPECAST(drvname ## _display, _EGLDisplay, obj->DriverData) \
    _EGL_DRIVER_TYPECAST(drvname ## _context, _EGLContext, obj)             \
@@ -190,9 +189,9 @@ struct _egl_driver
                                          EGLBoolean *external_only,
                                          EGLint *num_modifiers);
 
-   void (*SetBlobCacheFuncsANDROID) (const _EGLDriver *drv, _EGLDisplay *disp,
-                                     EGLSetBlobFuncANDROID set,
-                                     EGLGetBlobFuncANDROID get);
+   void (*SetBlobCacheFuncsANDROID)(_EGLDisplay *disp,
+                                    EGLSetBlobFuncANDROID set,
+                                    EGLGetBlobFuncANDROID get);
 };
 
 
@@ -200,10 +199,6 @@ extern bool
 _eglInitializeDisplay(_EGLDisplay *disp);
 
 
-extern __eglMustCastToProperFunctionPointerType
-_eglGetDriverProc(const char *procname);
-
-
 #ifdef __cplusplus
 }
 #endif