summaryrefslogtreecommitdiff
path: root/src/glx/x11/indirect.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-02-25 01:48:25 +0000
committerIan Romanick <idr@us.ibm.com>2005-02-25 01:48:25 +0000
commit1fd3bbc42e8ad267c552a3818f64b0850c188927 (patch)
tree2365e15de7b20fe37f1244a6baad869da156c676 /src/glx/x11/indirect.h
parentac8020ea9cad98471f0cb6529982d585b3e0b03d (diff)
Convert the static functions read_pixel_reply, read_reply,
setup_single_request, and setup_vendor_request to the global functions __glXReadPixelReply, __glXReadReply, __glXSetupSingleRequest, and __glXSetupVendorRequest. This will make it easier to add handcoded Single / VendorPrivate / VendorPrivteWithReply functions.
Diffstat (limited to 'src/glx/x11/indirect.h')
-rw-r--r--src/glx/x11/indirect.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/glx/x11/indirect.h b/src/glx/x11/indirect.h
index a25079090c..93bab10bf6 100644
--- a/src/glx/x11/indirect.h
+++ b/src/glx/x11/indirect.h
@@ -42,6 +42,33 @@
# else
# define HIDDEN
# endif
+# if defined(__i386__) && defined(__GNUC__)
+# define FASTCALL __attribute__((fastcall))
+# else
+# define FASTCALL
+# endif
+# if defined(__GNUC__)
+# define NOINLINE __attribute__((noinline))
+# else
+# define NOINLINE
+# endif
+
+#include "glxclient.h"
+
+extern HIDDEN NOINLINE CARD32 __glXReadReply( Display *dpy, size_t size,
+ void * dest, GLboolean reply_is_always_array );
+
+extern HIDDEN NOINLINE void __glXReadPixelReply( Display *dpy,
+ __GLXcontext * gc, unsigned max_dim, GLint width, GLint height,
+ GLint depth, GLenum format, GLenum type, void * dest,
+ GLboolean dimensions_in_reply );
+
+extern HIDDEN NOINLINE FASTCALL GLubyte * __glXSetupSingleRequest(
+ __GLXcontext * gc, GLint sop, GLint cmdlen );
+
+extern HIDDEN NOINLINE FASTCALL GLubyte * __glXSetupVendorRequest(
+ __GLXcontext * gc, GLint code, GLint vop, GLint cmdlen );
+
extern HIDDEN void __indirect_glNewList(GLuint list, GLenum mode);
extern HIDDEN void __indirect_glEndList(void);
extern HIDDEN void __indirect_glCallList(GLuint list);
@@ -521,5 +548,7 @@ extern HIDDEN void __indirect_glMultiDrawElementsEXT(GLenum mode, const GLsizei
extern HIDDEN void __indirect_glActiveStencilFaceEXT(GLenum face);
# undef HIDDEN
+# undef FASTCALL
+# undef NOINLINE
#endif /* !defined( _INDIRECT_H_ ) */