[PATCH 10/11] glx: Make several functions available outside the glxcmds.c compilation unit
Ian Romanick
idr at freedesktop.org
Fri Dec 23 15:18:28 PST 2011
From: Ian Romanick <ian.d.romanick at intel.com>
validGlxScreen, validGlxFBConfig, validGlxContext, and
__glXdirectContextCreate will soon be used by createcontext.c.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
glx/glxcmds.c | 12 ++++++------
glx/glxcontext.h | 13 +++++++++++++
2 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/glx/glxcmds.c b/glx/glxcmds.c
index 0dce420..a20beb3 100644
--- a/glx/glxcmds.c
+++ b/glx/glxcmds.c
@@ -50,7 +50,7 @@
#include "indirect_table.h"
#include "indirect_util.h"
-static int
+_X_HIDDEN int
validGlxScreen(ClientPtr client, int screen, __GLXscreen **pGlxScreen, int *err)
{
/*
@@ -66,7 +66,7 @@ validGlxScreen(ClientPtr client, int screen, __GLXscreen **pGlxScreen, int *err)
return TRUE;
}
-static int
+_X_HIDDEN int
validGlxFBConfig(ClientPtr client, __GLXscreen *pGlxScreen, XID id,
__GLXconfig **config, int *err)
{
@@ -130,7 +130,7 @@ validGlxFBConfigForWindow(ClientPtr client, __GLXconfig *config,
return TRUE;
}
-static int
+_X_HIDDEN int
validGlxContext(ClientPtr client, XID id, int access_mode,
__GLXcontext **context, int *err)
{
@@ -198,9 +198,9 @@ static void __glXdirectContextDestroy(__GLXcontext *context)
free(context);
}
-static __GLXcontext *__glXdirectContextCreate(__GLXscreen *screen,
- __GLXconfig *modes,
- __GLXcontext *shareContext)
+_X_HIDDEN __GLXcontext *__glXdirectContextCreate(__GLXscreen *screen,
+ __GLXconfig *modes,
+ __GLXcontext *shareContext)
{
__GLXcontext *context;
diff --git a/glx/glxcontext.h b/glx/glxcontext.h
index 65d51f5..73cd509 100644
--- a/glx/glxcontext.h
+++ b/glx/glxcontext.h
@@ -128,4 +128,17 @@ struct __GLXcontext {
void __glXContextDestroy(__GLXcontext *context);
+extern int validGlxScreen(ClientPtr client, int screen,
+ __GLXscreen **pGlxScreen, int *err);
+
+extern int validGlxFBConfig(ClientPtr client, __GLXscreen *pGlxScreen,
+ XID id, __GLXconfig **config, int *err);
+
+extern int validGlxContext(ClientPtr client, XID id, int access_mode,
+ __GLXcontext **context, int *err);
+
+extern __GLXcontext *__glXdirectContextCreate(__GLXscreen *screen,
+ __GLXconfig *modes,
+ __GLXcontext *shareContext);
+
#endif /* !__GLX_context_h__ */
--
1.7.6.4
More information about the xorg-devel
mailing list