diff options
author | Kyle Brenneman <kbrenneman@nvidia.com> | 2015-09-10 13:32:13 -0600 |
---|---|---|
committer | Kyle Brenneman <kbrenneman@nvidia.com> | 2015-09-10 14:28:48 -0600 |
commit | b9aa37bdf47e14780ac92e60b26571d139cb3766 (patch) | |
tree | 08431078387c6791823237f0f8730c4e6c36024d /src/GLdispatch/GLdispatch.h | |
parent | 9eb1fced7693e69326d02f5a95ec581e9e390335 (diff) |
libGLdispatch: Remove __glDispatchGetOffset and __glDispatchSetEntry.
Removed __glDispatchGetOffset and __glDispatchSetEntry from libGLdispatch.
Neither one is used anywhere, and the dispatch offsets should be an internal
detail of libGLdispatch.
Removed the mutex from stub_find_dynamic. Anything that calls that function
should already be holding the GLdispatch lock.
Also removed the __GLdispatchGetOffsetHook, since nothing uses it anymore.
Diffstat (limited to 'src/GLdispatch/GLdispatch.h')
-rw-r--r-- | src/GLdispatch/GLdispatch.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/GLdispatch/GLdispatch.h b/src/GLdispatch/GLdispatch.h index 829f210..1e7bf4b 100644 --- a/src/GLdispatch/GLdispatch.h +++ b/src/GLdispatch/GLdispatch.h @@ -115,12 +115,6 @@ typedef struct __GLdispatchAPIStateRec { } __GLdispatchAPIState; /*! - * Offset hook type used by GLdispatch wrapper libraries to implement entrypoint - * rewriting. - */ -typedef void (*__GLdispatchGetOffsetHook)(void *(*lookupStubOffset)(const char *)); - -/*! * Gets the version number for the ABI between libGLdispatch and the * window-system libraries. * @@ -224,22 +218,6 @@ PUBLIC void __glDispatchLoseCurrent(void); */ PUBLIC __GLdispatchAPIState *__glDispatchGetCurrentAPIState(void); -/*! - * This gets the "offset" of the given entrypoint in the GL dispatch table - * structure, or -1 if there was an error. This is technically an opaque handle - * which can be passed into __glDispatchSetEntry() later, but in practice - * describes a real offset. If the call succeeds, the offset remains valid for - * the lifetime of libglvnd for all GL dispatch tables used by libglvnd. - */ -PUBLIC GLint __glDispatchGetOffset(const GLubyte *procName); - -/*! - * This sets the dispatch table entry given by <offset> to the entrypoint - * address given by <addr>. - */ -PUBLIC void __glDispatchSetEntry(__GLdispatchTable *dispatch, - GLint offset, __GLdispatchProc addr); - /** * Checks to see if multiple threads are being used. This should be called * periodically from places like glXMakeCurrent. |