summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/glapi_getproc.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-04-23 16:06:26 +0800
committerChia-I Wu <[email protected]>2010-05-07 10:41:11 +0800
commita73c6540d9a7f6e26d8568ba2fc522cb865f0a6c (patch)
treeedeb695b6ed24d3cb0016fbabadea48931de779f /src/mapi/glapi/glapi_getproc.c
parent296adbd545b8efd38c9ed508166b2de2764a444b (diff)
mapi: Add mapi and share the code with glapi.
Specifically, move all or most of glapi/glapi.c to mapi/u_current.c, glapi/glapi_execmem.c to mapi/u_execmem.c, glapi/glthread.[ch] to mapi/u_thread.[ch] and remove their dependencies on core Mesa headers.
Diffstat (limited to 'src/mapi/glapi/glapi_getproc.c')
-rw-r--r--src/mapi/glapi/glapi_getproc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mapi/glapi/glapi_getproc.c b/src/mapi/glapi/glapi_getproc.c
index c73e8dd3b04..3c134f929d6 100644
--- a/src/mapi/glapi/glapi_getproc.c
+++ b/src/mapi/glapi/glapi_getproc.c
@@ -387,7 +387,7 @@ set_entry_info( struct _glapi_function * entry, const char * signature, unsigned
* the parameter signature of a static function.
*/
-PUBLIC int
+int
_glapi_add_dispatch( const char * const * function_names,
const char * parameter_signature )
{
@@ -501,7 +501,7 @@ _glapi_add_dispatch( const char * const * function_names,
/**
* Return offset of entrypoint for named function within dispatch table.
*/
-PUBLIC GLint
+GLint
_glapi_get_proc_offset(const char *funcName)
{
GLint offset;
@@ -522,7 +522,7 @@ _glapi_get_proc_offset(const char *funcName)
* in the name of static functions, try generating a new API entrypoint on
* the fly with assembly language.
*/
-PUBLIC _glapi_proc
+_glapi_proc
_glapi_get_proc_address(const char *funcName)
{
_glapi_proc func;
@@ -598,7 +598,7 @@ _glapi_get_proc_name(GLuint offset)
* Return size of dispatch table struct as number of functions (or
* slots).
*/
-PUBLIC GLuint
+GLuint
_glapi_get_dispatch_table_size(void)
{
return DISPATCH_TABLE_SIZE;