Gut a few more dead bits. Replace uses of the CreateNewScreenFunc typedef
authorIan Romanick <idr@us.ibm.com>
Sun, 24 Jul 2005 07:38:23 +0000 (07:38 +0000)
committerIan Romanick <idr@us.ibm.com>
Sun, 24 Jul 2005 07:38:23 +0000 (07:38 +0000)
(from glxclient.h) with PFNCREATENEWSCREEN (from dri_interface.h).

Remove the prototype for __driCreateScreen and fix the prototype for
__driCreateNewScreen (append the API version) in dri_interface.h.

include/GL/internal/dri_interface.h
src/glx/x11/dri_glx.c
src/glx/x11/glxclient.h
src/glx/x11/glxext.c

index 3a704f6a72edca4a6d8599db12d33d4098d266b1..e5c5a7759d14fb7031e647b48b2fcedc6b5ef382 100644 (file)
@@ -175,14 +175,7 @@ typedef void *(CREATENEWSCREENFUNC)(__DRInativeDisplay *dpy, int scrn,
     void * pSAREA, int fd, int internal_api_version,
     __GLcontextModes ** driver_modes);
 typedef CREATENEWSCREENFUNC* PFNCREATENEWSCREENFUNC;
-extern CREATENEWSCREENFUNC __driCreateNewScreen;
-
-#ifndef DRI_NEW_INTERFACE_ONLY
-
-extern void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc,
-    int numConfigs, __GLXvisualConfig *config);
-
-#endif /* DRI_NEW_INTERFACE_ONLY */
+extern CREATENEWSCREENFUNC __driCreateNewScreen_20050722;
 
 
 /**
index a4a389ce5d89be74358090add09d3d515e83be87..8cc0b62b02389b4ade8204b79446617b352fb901 100644 (file)
@@ -237,7 +237,7 @@ static __DRIdriver *OpenDriver(const char *driverName)
             return NULL; /* out of memory! */
          }
 
-         driver->createNewScreenFunc = (CreateNewScreenFunc)
+         driver->createNewScreenFunc = (PFNCREATENEWSCREENFUNC)
             dlsym(handle, createNewScreenName);
 
          if ( driver->createNewScreenFunc == NULL ) {
@@ -424,7 +424,8 @@ void *driCreateDisplay(Display *dpy, __DRIdisplay *pdisp)
     pdisp->destroyDisplay = driDestroyDisplay;
 
     /* allocate array of pointers to createNewScreen funcs */
-    pdisp->createNewScreen = (CreateNewScreenFunc *) Xmalloc(numScreens * sizeof(void *));
+    pdisp->createNewScreen = (PFNCREATENEWSCREENFUNC *)
+      Xmalloc(numScreens * sizeof(void *));
     if (!pdisp->createNewScreen) {
        Xfree(pdpyp);
        return NULL;
index b8241b8cf232d6d1206ea98dbc1e272110bb7165..6852fd066aa72c4e82acafb8cd82a6c3271bc333 100644 (file)
@@ -84,15 +84,6 @@ typedef struct _glapi_table __GLapi;
 
 #include <GL/internal/dri_interface.h>
 
-typedef void *(*CreateScreenFunc)(Display *dpy, int scrn, __DRIscreen *psc,
-                                  int numConfigs, __GLXvisualConfig *config);
-
-typedef void *(*CreateNewScreenFunc)(Display *dpy, int scrn, __DRIscreen *psc,
-    const __GLcontextModes * modes, const __DRIversion * ddx_version,
-    const __DRIversion * dri_version, const __DRIversion * drm_version,
-    const __DRIframebuffer * frame_buffer, void * pSAREA,
-    int fd, int internal_api_version, __GLcontextModes ** driver_modes);
-
 
 /**
  * Display dependent methods.  This structure is initialized during the
@@ -114,7 +105,7 @@ struct __DRIdisplayRec {
      * Array of pointers to methods to create and initialize the private DRI
      * screen data.
      */
-    CreateNewScreenFunc * createNewScreen;
+    PFNCREATENEWSCREENFUNC * createNewScreen;
 };
 
 
@@ -124,7 +115,7 @@ struct __DRIdisplayRec {
 struct __DRIdriverRec {
    const char *name;
    void *handle;
-   CreateNewScreenFunc createNewScreenFunc;
+   PFNCREATENEWSCREENFUNC createNewScreenFunc;
    struct __DRIdriverRec *next;
 };
 
index be6b84b262de38e5c42503933851ca970a486d5d..1754efa0c262d52b523205974417f86974c14c22 100644 (file)
@@ -688,7 +688,7 @@ filter_modes( __GLcontextModes ** server_modes,
 static void *
 CallCreateNewScreen(Display *dpy, int scrn, __DRIscreen *psc,
                    __DRIdisplay * driDpy,
-                   CreateNewScreenFunc createNewScreen)
+                   PFNCREATENEWSCREENFUNC createNewScreen)
 {
     __DRIscreenPrivate *psp = NULL;
 #ifndef GLX_USE_APPLEGL