• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef EGLDISPATCHSTUBS_H
2 #define EGLDISPATCHSTUBS_H
3 
4 #include "glvnd/libeglabi.h"
5 
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[];
11 
12 void __eglInitDispatchStubs(const __EGLapiExports *exportsTable);
13 void __eglSetDispatchIndex(const char *name, int index);
14 
15 /**
16  * Returns the dispatch function for the given name, or \c NULL if the function
17  * isn't supported.
18  */
19 void *__eglDispatchFindDispatchFunction(const char *name);
20 
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);
25 
26 #endif // EGLDISPATCHSTUBS_H
27