2 * (C) Copyright IBM Corporation 2005
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sub license,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
20 * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
22 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 #ifndef __GLX_INDIRECT_UTIL_H__
27 #define __GLX_INDIRECT_UTIL_H__
29 extern GLint
__glGetBooleanv_variable_size(GLenum e
);
31 extern void *__glXGetAnswerBuffer(__GLXclientState
* cl
,
32 size_t required_size
, void *local_buffer
,
33 size_t local_size
, unsigned alignment
);
35 extern void __glXSendReply(ClientPtr client
, const void *data
,
36 size_t elements
, size_t element_size
,
37 GLboolean always_array
, CARD32 retval
);
39 extern void __glXSendReplySwap(ClientPtr client
, const void *data
,
40 size_t elements
, size_t element_size
,
41 GLboolean always_array
, CARD32 retval
);
43 struct __glXDispatchInfo
;
45 extern void *__glXGetProtocolDecodeFunction(const struct __glXDispatchInfo
46 *dispatch_info
, int opcode
,
49 extern int __glXGetProtocolSizeData(const struct __glXDispatchInfo
50 *dispatch_info
, int opcode
,
51 __GLXrenderSizeData
* data
);
53 #endif /* __GLX_INDIRECT_UTIL_H__ */