122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes/*
222144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Mesa 3-D graphics library
322144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Version:  3.5
422144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes *
522144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
622144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes *
722144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Permission is hereby granted, free of charge, to any person obtaining a
822144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * copy of this software and associated documentation files (the "Software"),
922144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * to deal in the Software without restriction, including without limitation
1022144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * and/or sell copies of the Software, and to permit persons to whom the
1222144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * Software is furnished to do so, subject to the following conditions:
1322144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes *
1422144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * The above copyright notice and this permission notice shall be included
1522144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * in all copies or substantial portions of the Software.
1622144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes *
1722144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1822144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1922144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
2022144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
2122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2222144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2322144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes */
2422144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes
256dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell
266dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell
27b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell#ifndef API_LOOPBACK_H
28b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell#define API_LOOPBACK_H
29b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell
30af12de279ea36fa5bc985bbe27ca9e93529cd82fVinson Lee#include "main/compiler.h"
31af12de279ea36fa5bc985bbe27ca9e93529cd82fVinson Lee#include "main/mfeatures.h"
32af12de279ea36fa5bc985bbe27ca9e93529cd82fVinson Lee
33af12de279ea36fa5bc985bbe27ca9e93529cd82fVinson Leestruct _glapi_table;
34b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell
35cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu#if FEATURE_beginend
36b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell
370dc989ea5b54a35bbafb00a0d40a799f8cdf0facIan Romanickextern void
380dc989ea5b54a35bbafb00a0d40a799f8cdf0facIan Romanick_mesa_loopback_init_api_table(const struct gl_context *ctx,
390dc989ea5b54a35bbafb00a0d40a799f8cdf0facIan Romanick                              struct _glapi_table *dest);
40b014986fdb259eb60bd3e5a3fbcfcb218969f5f5Keith Whitwell
41cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu#else /* FEATURE_beginend */
42cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu
439520f483b8f1e45fa474674b415554988de5d8d3Brian Paulstatic inline void
44cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu_mesa_loopback_init_api_table( struct _glapi_table *dest )
45cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu{
46cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu}
47cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu
48cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu#endif /* FEATURE_beginend */
49cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu
50cef97267d696d37f4dccb22951499ca25d5d87adChia-I Wu#endif /* API_LOOPBACK_H */
51