1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright © 2008 Red Hat, Inc 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Permission to use, copy, modify, distribute, and sell this software 5*4882a593Smuzhiyun * and its documentation for any purpose is hereby granted without 6*4882a593Smuzhiyun * fee, provided that the above copyright notice appear in all copies 7*4882a593Smuzhiyun * and that both that copyright notice and this permission notice 8*4882a593Smuzhiyun * appear in supporting documentation, and that the name of the 9*4882a593Smuzhiyun * copyright holders not be used in advertising or publicity 10*4882a593Smuzhiyun * pertaining to distribution of the software without specific, 11*4882a593Smuzhiyun * written prior permission. The copyright holders make no 12*4882a593Smuzhiyun * representations about the suitability of this software for any 13*4882a593Smuzhiyun * purpose. It is provided "as is" without express or implied 14*4882a593Smuzhiyun * warranty. 15*4882a593Smuzhiyun * 16*4882a593Smuzhiyun * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS 17*4882a593Smuzhiyun * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 18*4882a593Smuzhiyun * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 19*4882a593Smuzhiyun * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20*4882a593Smuzhiyun * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 21*4882a593Smuzhiyun * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 22*4882a593Smuzhiyun * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 23*4882a593Smuzhiyun * SOFTWARE. 24*4882a593Smuzhiyun */ 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun #ifndef _GLX_dri_common_h 27*4882a593Smuzhiyun #define _GLX_dri_common_h 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun typedef struct __GLXDRIconfig __GLXDRIconfig; 30*4882a593Smuzhiyun struct __GLXDRIconfig { 31*4882a593Smuzhiyun __GLXconfig config; 32*4882a593Smuzhiyun const __DRIconfig *driConfig; 33*4882a593Smuzhiyun }; 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun __GLXconfig *glxConvertConfigs(const __DRIcoreExtension * core, 36*4882a593Smuzhiyun const __DRIconfig ** configs); 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun void *glxProbeDriver(const char *name, 39*4882a593Smuzhiyun void **coreExt, const char *coreName, int coreVersion, 40*4882a593Smuzhiyun void **renderExt, const char *renderName, 41*4882a593Smuzhiyun int renderVersion); 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun #endif 44