summaryrefslogtreecommitdiff
path: root/include/GL
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-04-30 21:05:10 -0400
committerKristian Høgsberg <krh@redhat.com>2007-10-05 00:12:30 -0400
commitb42152061c50e870dc2698ea1d860980ce1198b1 (patch)
treebe53cd028adb31dbf6a054f9f02971b7e4e4240f /include/GL
parent4a22ae8d446855d839cc199df8eb1b057045cb88 (diff)
Add macros to generate CreateNewScreen entrypoint.
Diffstat (limited to 'include/GL')
-rw-r--r--include/GL/internal/dri_interface.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index a1a29409b1..97edec0ca9 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -94,10 +94,27 @@ typedef void (* PFNGLXSCRENABLEEXTENSIONPROC) ( void *psc, const char * name );
/**
+ * Macros for building symbol and strings. Standard CPP two step...
+ */
+
+#define __DRI_REAL_STRINGIFY(x) # x
+#define __DRI_STRINGIFY(x) __DRI_REAL_STRINGIFY(x)
+#define __DRI_REAL_MAKE_VERSION(name, version) name ## _ ## version
+#define __DRI_MAKE_VERSION(name, version) __DRI_REAL_MAKE_VERSION(name, version)
+
+#define __DRI_CREATE_NEW_SCREEN \
+ __DRI_MAKE_VERSION(__driCreateNewScreen, __DRI_INTERFACE_VERSION)
+
+#define __DRI_CREATE_NEW_SCREEN_STRING \
+ __DRI_STRINGIFY(__DRI_CREATE_NEW_SCREEN)
+
+/**
* \name Functions and data provided by the driver.
*/
/*@{*/
+#define __DRI_INTERFACE_VERSION 20070105
+
typedef void *(CREATENEWSCREENFUNC)(__DRInativeDisplay *dpy, int scrn,
__DRIscreen *psc, const __GLcontextModes * modes,
const __DRIversion * ddx_version, const __DRIversion * dri_version,
@@ -106,7 +123,8 @@ typedef void *(CREATENEWSCREENFUNC)(__DRInativeDisplay *dpy, int scrn,
const __DRIinterfaceMethods * interface,
__GLcontextModes ** driver_modes);
typedef CREATENEWSCREENFUNC* PFNCREATENEWSCREENFUNC;
-extern CREATENEWSCREENFUNC __driCreateNewScreen_20070105;
+extern CREATENEWSCREENFUNC __DRI_CREATE_NEW_SCREEN;
+
/**