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