1 #ifndef EGLDISPATCHSTUBS_H
2 #define EGLDISPATCHSTUBS_H
4 #include "glvnd/libeglabi.h"
6 // These variables are all generated along with the dispatch stubs.
7 extern const int __EGL_DISPATCH_FUNC_COUNT
;
8 extern const char * const __EGL_DISPATCH_FUNC_NAMES
[];
9 extern int __EGL_DISPATCH_FUNC_INDICES
[];
10 extern const __eglMustCastToProperFunctionPointerType __EGL_DISPATCH_FUNCS
[];
12 void __eglInitDispatchStubs(const __EGLapiExports
*exportsTable
);
13 void __eglSetDispatchIndex(const char *name
, int index
);
16 * Returns the dispatch function for the given name, or \c NULL if the function
19 void *__eglDispatchFindDispatchFunction(const char *name
);
21 // Helper functions used by the generated stubs.
22 __eglMustCastToProperFunctionPointerType
__eglDispatchFetchByDisplay(EGLDisplay dpy
, int index
);
23 __eglMustCastToProperFunctionPointerType
__eglDispatchFetchByDevice(EGLDeviceEXT dpy
, int index
);
24 __eglMustCastToProperFunctionPointerType
__eglDispatchFetchByCurrent(int index
);
26 #endif // EGLDISPATCHSTUBS_H