diff options
author | Kyle Brenneman <[email protected]> | 2016-05-11 14:01:53 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-05-30 16:29:49 +0100 |
commit | 22a9e00aab66d3dd6890e9eaac3f429c0ddec17e (patch) | |
tree | cd4568b2381dd25cfa611bc6bc676016d89b6f2f /src/glx/glxglvnd.h | |
parent | cee459d84de7533d0e0a74a37f7fc4c0f2b77bcf (diff) |
glx: Implement the libglvnd interface.
With reference to the libglvnd branch:
https://cgit.freedesktop.org/mesa/mesa/log/?h=libglvnd
This is a squashed commit containing all of Kyle's commits, all but two
of Emil's commits (to follow), and a small fixup from myself to mark the
rest of the glX* functions as _GLX_PUBLIC so they are not exported when
building for libglvnd. I (ajax) squashed them together both for ease of
review, and because most of the changes are un-useful intermediate
states representing the evolution of glvnd's internal API.
Co-author: Emil Velikov <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src/glx/glxglvnd.h')
-rw-r--r-- | src/glx/glxglvnd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/glx/glxglvnd.h b/src/glx/glxglvnd.h new file mode 100644 index 00000000000..b1d8b627fcf --- /dev/null +++ b/src/glx/glxglvnd.h @@ -0,0 +1,14 @@ +#ifndef _glx_lib_glvnd_h_ +#define _glx_lib_glvnd_h_ + +typedef struct __GLXapiExportsRec __GLXapiExports; + +extern const __GLXapiExports *__glXGLVNDAPIExports; + +extern const int DI_FUNCTION_COUNT; + +extern const void * const __glXDispatchFunctions[]; +extern int __glXDispatchTableIndices[]; +extern const char * const __glXDispatchTableStrings[]; + +#endif |