diff options
author | Jeremy Huddleston <[email protected]> | 2011-06-09 16:59:49 -0700 |
---|---|---|
committer | Jeremy Huddleston <[email protected]> | 2011-06-11 21:55:01 -0700 |
commit | 85937f4c0d4a78d3a11e3c1fa6148640f2a9ad7b (patch) | |
tree | f3b139670322e4e8beccc620bfcf09153e6d6aa1 /src/mapi/glapi/glapi.h | |
parent | 837dc6101120a90f7a8d29ea45cf8e849a3542c2 (diff) |
glapi: Add API that can create a _glapi_table from a dlfcn handle
Example usage:
void *handle = dlopen(opengl_library_path, RTLD_LOCAL);
struct _glapi_table *disp = _glapi_create_table_from_handle(handle, "gl");
Signed-off-by: Jeremy Huddleston <[email protected]>
Diffstat (limited to 'src/mapi/glapi/glapi.h')
-rw-r--r-- | src/mapi/glapi/glapi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mapi/glapi/glapi.h b/src/mapi/glapi/glapi.h index e909cf892ab..35dffd75767 100644 --- a/src/mapi/glapi/glapi.h +++ b/src/mapi/glapi/glapi.h @@ -159,6 +159,10 @@ _GLAPI_EXPORT const char * _glapi_get_proc_name(unsigned int offset); +_GLAPI_EXPORT struct _glapi_table * +_glapi_create_table_from_handle(void *handle, const char *symbol_prefix); + + _GLAPI_EXPORT unsigned long _glthread_GetID(void); |