1 /* -*- mode: c; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 3; coding: utf-8-unix -*- */
3 * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
4 * Copyright © 2008 Red Hat, Inc.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Soft-
8 * ware"), to deal in the Software without restriction, including without
9 * limitation the rights to use, copy, modify, merge, publish, distribute,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, provided that the above copyright
12 * notice(s) and this permission notice appear in all copies of the Soft-
13 * ware and that both the above copyright notice(s) and this permission
14 * notice appear in supporting documentation.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
18 * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY
19 * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
20 * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-
21 * QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
22 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
23 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-
24 * MANCE OF THIS SOFTWARE.
26 * Except as contained in this notice, the name of a copyright holder shall
27 * not be used in advertising or otherwise to promote the sale, use or
28 * other dealings in this Software without prior written authorization of
29 * the copyright holder.
32 * Kevin E. Martin <kevin@precisioninsight.com>
33 * Brian Paul <brian@precisioninsight.com>
34 * Kristian Høgsberg (krh@redhat.com)
40 typedef struct __GLXDRIconfigPrivateRec __GLXDRIconfigPrivate
;
42 struct __GLXDRIconfigPrivateRec
{
43 __GLcontextModes modes
;
44 const __DRIconfig
*driConfig
;
47 extern __GLcontextModes
*
48 driConvertConfigs(const __DRIcoreExtension
*core
,
49 __GLcontextModes
*modes
, const __DRIconfig
**configs
);
51 extern const __DRIsystemTimeExtension systemTimeExtension
;
53 extern void InfoMessageF(const char *f
, ...);
55 extern void ErrorMessageF(const char *f
, ...);
57 extern void *driOpenDriver(const char *driverName
);
59 extern void driBindExtensions(__GLXscreenConfigs
*psc
, int dri2
);
61 #endif /* _DRI_COMMON_H */