/*
* Enable/disable printing of warning messages.
*/
-void
+PUBLIC void
_glapi_noop_enable_warnings(GLboolean enable)
{
WarnFlag = enable;
/*
* Register a callback function for reporting errors.
*/
-void
+PUBLIC void
_glapi_set_warning_func( _glapi_warning_func func )
{
warning_func = func;
-struct _glapi_table *_glapi_Dispatch = (struct _glapi_table *) __glapi_noop_table;
+PUBLIC struct _glapi_table *_glapi_Dispatch = (struct _glapi_table *) __glapi_noop_table;
#if defined( THREADS )
-struct _glapi_table *_glapi_DispatchTSD = (struct _glapi_table *) __glapi_noop_table;
+PUBLIC struct _glapi_table *_glapi_DispatchTSD = (struct _glapi_table *) __glapi_noop_table;
#endif
-struct _glapi_table *_glapi_RealDispatch = (struct _glapi_table *) __glapi_noop_table;
+PUBLIC struct _glapi_table *_glapi_RealDispatch = (struct _glapi_table *) __glapi_noop_table;
/* Used when thread safety disabled */
-void *_glapi_Context = NULL;
+PUBLIC void *_glapi_Context = NULL;
static GLboolean DispatchOverride = GL_FALSE;
* We should call this periodically from a function such as glXMakeCurrent
* in order to test if multiple threads are being used.
*/
-void
+PUBLIC void
_glapi_check_multithread(void)
{
#if defined(THREADS)
* The context pointer is an opaque type which should be cast to
* void from the real context pointer type.
*/
-void
+PUBLIC void
_glapi_set_context(void *context)
{
(void) __unused_noop_functions; /* silence a warning */
* The context pointer is an opaque type which should be cast from
* void to the real context pointer type.
*/
-void *
+PUBLIC void *
_glapi_get_context(void)
{
#if defined(THREADS)
/**
* Set the global or per-thread dispatch table pointer.
*/
-void
+PUBLIC void
_glapi_set_dispatch(struct _glapi_table *dispatch)
{
if (!dispatch) {
/**
* Return pointer to current dispatch table for calling thread.
*/
-struct _glapi_table *
+PUBLIC struct _glapi_table *
_glapi_get_dispatch(void)
{
#if defined(THREADS)
/*
* Return: dispatch override layer number.
*/
-int
+PUBLIC int
_glapi_begin_dispatch_override(struct _glapi_table *override)
{
struct _glapi_table *real = _glapi_get_dispatch();
}
-void
+PUBLIC void
_glapi_end_dispatch_override(int layer)
{
struct _glapi_table *real = _glapi_get_dispatch();
}
-struct _glapi_table *
+PUBLIC struct _glapi_table *
_glapi_get_override_dispatch(int layer)
{
if (layer == 0) {
* Add a new extension function entrypoint.
* Return: GL_TRUE = success or GL_FALSE = failure
*/
-GLboolean
+PUBLIC GLboolean
_glapi_add_entrypoint(const char *funcName, GLuint offset)
{
/* trivial rejection test */
/**
* Return offset of entrypoint for named function within dispatch table.
*/
-GLint
+PUBLIC GLint
_glapi_get_proc_offset(const char *funcName)
{
/* search extension functions first */
* in the name of static functions, try generating a new API entrypoint on
* the fly with assembly language.
*/
-const _glapi_proc
+PUBLIC const _glapi_proc
_glapi_get_proc_address(const char *funcName)
{
GLuint i;
* Return the name of the function at the given dispatch offset.
* This is only intended for debugging.
*/
-const char *
+PUBLIC const char *
_glapi_get_proc_name(GLuint offset)
{
GLuint i;
* Return size of dispatch table struct as number of functions (or
* slots).
*/
-GLuint
+PUBLIC GLuint
_glapi_get_dispatch_table_size(void)
{
return DISPATCH_TABLE_SIZE;
/**
* Get API dispatcher version string.
*/
-const char *
+PUBLIC const char *
_glapi_get_version(void)
{
return "20021001"; /* YYYYMMDD */
* Make sure there are no NULL pointers in the given dispatch table.
* Intended for debugging purposes.
*/
-void
+PUBLIC void
_glapi_check_table(const struct _glapi_table *table)
{
#ifdef DEBUG