egldispatchstubs.h revision 01e04c3f
101e04c3fSmrg#ifndef EGLDISPATCHSTUBS_H 201e04c3fSmrg#define EGLDISPATCHSTUBS_H 301e04c3fSmrg 401e04c3fSmrg#include "glvnd/libeglabi.h" 501e04c3fSmrg 601e04c3fSmrg// These variables are all generated along with the dispatch stubs. 701e04c3fSmrgextern const int __EGL_DISPATCH_FUNC_COUNT; 801e04c3fSmrgextern const char * const __EGL_DISPATCH_FUNC_NAMES[]; 901e04c3fSmrgextern int __EGL_DISPATCH_FUNC_INDICES[]; 1001e04c3fSmrgextern const __eglMustCastToProperFunctionPointerType __EGL_DISPATCH_FUNCS[]; 1101e04c3fSmrg 1201e04c3fSmrgvoid __eglInitDispatchStubs(const __EGLapiExports *exportsTable); 1301e04c3fSmrgvoid __eglSetDispatchIndex(const char *name, int index); 1401e04c3fSmrg 1501e04c3fSmrg/** 1601e04c3fSmrg * Returns the dispatch function for the given name, or \c NULL if the function 1701e04c3fSmrg * isn't supported. 1801e04c3fSmrg */ 1901e04c3fSmrgvoid *__eglDispatchFindDispatchFunction(const char *name); 2001e04c3fSmrg 2101e04c3fSmrg// Helper functions used by the generated stubs. 2201e04c3fSmrg__eglMustCastToProperFunctionPointerType __eglDispatchFetchByDisplay(EGLDisplay dpy, int index); 2301e04c3fSmrg__eglMustCastToProperFunctionPointerType __eglDispatchFetchByDevice(EGLDeviceEXT dpy, int index); 2401e04c3fSmrg__eglMustCastToProperFunctionPointerType __eglDispatchFetchByCurrent(int index); 2501e04c3fSmrg 2601e04c3fSmrg#endif // EGLDISPATCHSTUBS_H 27