summaryrefslogtreecommitdiff
path: root/src/mapi/mapi
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-08-21 11:50:22 +0800
committerChia-I Wu <olv@lunarg.com>2010-08-21 14:13:59 +0800
commit760451baaec42bced6ade5026546ed3759495d70 (patch)
tree8826e7528534ac10e97b06de836f3bd1b14c6158 /src/mapi/mapi
parent0eac4b8740d4434037677166f2339e894d4ebac4 (diff)
glapi: Move public function/variable declarations to glapi.h.
glapi defines an interface that is used by DRI drivers. It must not be changed in an ABI incompatible way. This commit moves all functions/variables belong to the interface to glapi.h. Instead of including u_current.h from glapi.h, u_current.h now includes glapi.h.
Diffstat (limited to 'src/mapi/mapi')
-rw-r--r--src/mapi/mapi/u_current.h37
1 files changed, 17 insertions, 20 deletions
diff --git a/src/mapi/mapi/u_current.h b/src/mapi/mapi/u_current.h
index a6256f5b512..a6bd9f08385 100644
--- a/src/mapi/mapi/u_current.h
+++ b/src/mapi/mapi/u_current.h
@@ -4,49 +4,44 @@
#include "u_compiler.h"
#ifdef MAPI_GLAPI_CURRENT
-#define GLAPI_EXPORT PUBLIC
-#else
-#define GLAPI_EXPORT
-#endif
-/*
- * Unlike other utility functions, we need to keep the old names (_glapi_*) for
- * ABI compatibility. The desired functions are wrappers to the old ones.
- */
+#include "glapi/glapi.h"
+
+#else /* MAPI_GLAPI_CURRENT */
struct _glapi_table;
#ifdef GLX_USE_TLS
-GLAPI_EXPORT extern __thread struct _glapi_table *_glapi_tls_Dispatch
+extern __thread struct _glapi_table *_glapi_tls_Dispatch
__attribute__((tls_model("initial-exec")));
-GLAPI_EXPORT extern __thread void *_glapi_tls_Context
+extern __thread void *_glapi_tls_Context
__attribute__((tls_model("initial-exec")));
-GLAPI_EXPORT extern const struct _glapi_table *_glapi_Dispatch;
-GLAPI_EXPORT extern const void *_glapi_Context;
+extern const struct _glapi_table *_glapi_Dispatch;
+extern const void *_glapi_Context;
#else /* GLX_USE_TLS */
-GLAPI_EXPORT extern struct _glapi_table *_glapi_Dispatch;
-GLAPI_EXPORT extern void *_glapi_Context;
+extern struct _glapi_table *_glapi_Dispatch;
+extern void *_glapi_Context;
#endif /* GLX_USE_TLS */
-GLAPI_EXPORT void
+void
_glapi_check_multithread(void);
-GLAPI_EXPORT void
+void
_glapi_set_context(void *context);
-GLAPI_EXPORT void *
+void *
_glapi_get_context(void);
-GLAPI_EXPORT void
+void
_glapi_set_dispatch(struct _glapi_table *dispatch);
-GLAPI_EXPORT struct _glapi_table *
+struct _glapi_table *
_glapi_get_dispatch(void);
void
@@ -90,4 +85,6 @@ u_current_get_user(void)
#endif
}
-#endif /* GLX_USE_TLS */
+#endif /* MAPI_GLAPI_CURRENT */
+
+#endif /* _U_CURRENT_H_ */