a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/*
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * (C) Copyright IBM Corporation 2005
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * All Rights Reserved.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * copy of this software and associated documentation files (the "Software"),
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * to deal in the Software without restriction, including without limitation
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * the rights to use, copy, modify, merge, publish, distribute, sub license,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * and/or sell copies of the Software, and to permit persons to whom the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Software is furnished to do so, subject to the following conditions:
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * The above copyright notice and this permission notice (including the next
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * paragraph) shall be included in all copies or substantial portions of the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Software.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * IBM,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * SOFTWARE.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#ifndef __GLX_INDIRECT_UTIL_H__
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define __GLX_INDIRECT_UTIL_H__
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern GLint __glGetBooleanv_variable_size(GLenum e);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void *__glXGetAnswerBuffer(__GLXclientState * cl,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync size_t required_size, void *local_buffer,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync size_t local_size, unsigned alignment);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void __glXSendReply(ClientPtr client, const void *data,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync size_t elements, size_t element_size,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync GLboolean always_array, CARD32 retval);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void __glXSendReplySwap(ClientPtr client, const void *data,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync size_t elements, size_t element_size,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync GLboolean always_array, CARD32 retval);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncstruct __glXDispatchInfo;
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void *__glXGetProtocolDecodeFunction(const struct __glXDispatchInfo
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *dispatch_info, int opcode,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int swapped_version);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern int __glXGetProtocolSizeData(const struct __glXDispatchInfo
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *dispatch_info, int opcode,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync __GLXrenderSizeData * data);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#endif /* __GLX_INDIRECT_UTIL_H__ */