diff options
author | Brian Paul <[email protected]> | 2008-05-30 14:50:33 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-30 14:50:33 -0600 |
commit | e3805cad0d15ed25ce8f6c5a1f1ea913e5d0986a (patch) | |
tree | 644f0a12d1142269f63fc541f6aa3d41ac255a6a /src/egl/main/eglapi.h | |
parent | 6b9b49127e575ecfae08a78b991e89cb484150a4 (diff) |
egl: new eglGetProcAddress() code
The idea is to pass the call down to the device driver where an API-specific
query can be made. Untested.
Diffstat (limited to 'src/egl/main/eglapi.h')
-rw-r--r-- | src/egl/main/eglapi.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.h b/src/egl/main/eglapi.h index 555aa5dd9ef..f6163a0c7a8 100644 --- a/src/egl/main/eglapi.h +++ b/src/egl/main/eglapi.h @@ -2,10 +2,15 @@ #define EGLAPI_INCLUDED /** - * Typedefs for all EGL API entrypoint functions. + * A generic function ptr type */ +typedef void (*_EGLProc)(); +/** + * Typedefs for all EGL API entrypoint functions. + */ + /* driver funcs */ typedef EGLBoolean (*Initialize_t)(_EGLDriver *, EGLDisplay dpy, EGLint *major, EGLint *minor); typedef EGLBoolean (*Terminate_t)(_EGLDriver *, EGLDisplay dpy); @@ -39,6 +44,9 @@ typedef const char *(*QueryString_t)(_EGLDriver *drv, EGLDisplay dpy, EGLint nam typedef EGLBoolean (*WaitGL_t)(_EGLDriver *drv, EGLDisplay dpy); typedef EGLBoolean (*WaitNative_t)(_EGLDriver *drv, EGLDisplay dpy, EGLint engine); +typedef _EGLProc (*GetProcAddress_t)(const char *procname); + + #ifdef EGL_MESA_screen_surface typedef EGLBoolean (*ChooseModeMESA_t)(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen, const EGLint *attrib_list, EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes); @@ -95,6 +103,7 @@ struct _egl_api QueryString_t QueryString; WaitGL_t WaitGL; WaitNative_t WaitNative; + GetProcAddress_t GetProcAddress; /* EGL_MESA_screen extension */ ChooseModeMESA_t ChooseModeMESA; |