egldispatchstubs.h revision 01e04c3f
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. 7extern const int __EGL_DISPATCH_FUNC_COUNT; 8extern const char * const __EGL_DISPATCH_FUNC_NAMES[]; 9extern int __EGL_DISPATCH_FUNC_INDICES[]; 10extern const __eglMustCastToProperFunctionPointerType __EGL_DISPATCH_FUNCS[]; 11 12void __eglInitDispatchStubs(const __EGLapiExports *exportsTable); 13void __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 */ 19void *__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