diff options
author | Kristian Høgsberg <[email protected]> | 2008-03-08 20:34:24 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2008-03-08 20:34:24 -0500 |
commit | 92d2a78f8d2d56cfadb4cb5323adec32fe73e353 (patch) | |
tree | 32b0e8b44cf2c90fe5b244d2f887fb7bd2fa1112 /src/glx/x11/glxclient.h | |
parent | 53dc86363665b9b22f042c5d950b7de0ed02b4c8 (diff) |
Introduce __GLXDRIscreen so we can start moving function pointers in there.
Temporarily rename the __DRIscreen member to __driScreen. Eventually,
we'll move that into __GLXDRIscreen and only access it in dri_glx.c.
Diffstat (limited to 'src/glx/x11/glxclient.h')
-rw-r--r-- | src/glx/x11/glxclient.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/glx/x11/glxclient.h b/src/glx/x11/glxclient.h index 6ac92cf850a..b8ba4967387 100644 --- a/src/glx/x11/glxclient.h +++ b/src/glx/x11/glxclient.h @@ -93,14 +93,25 @@ typedef struct _glapi_table __GLapi; * \c driCreateDisplay call. */ typedef struct __GLXDRIdisplayRec __GLXDRIdisplay; +typedef struct __GLXDRIscreenRec __GLXDRIscreen; + struct __GLXDRIdisplayRec { /** * Method to destroy the private DRI display data. */ void (*destroyDisplay)(__GLXDRIdisplay *display); - void (*createScreen)(__GLXscreenConfigs *psc, int screen, - __GLXdisplayPrivate *priv); + __GLXDRIscreen *(*createScreen)(__GLXscreenConfigs *psc, int screen, + __GLXdisplayPrivate *priv); +}; + +struct __GLXDRIscreenRec { + + void (*destroyScreen)(__GLXscreenConfigs *psc); + + void (*createContext)(__GLXscreenConfigs *psc, + const __GLcontextModes *mode, + GLXContext gc, GLXContext shareList, int renderType); }; /* @@ -430,18 +441,13 @@ struct __GLXscreenConfigsRec { /** * Per screen direct rendering interface functions and data. */ - __DRIscreen driScreen; + __DRIscreen __driScreen; __glxHashTable *drawHash; Display *dpy; int scr; void *driver; - void (*driDestroyScreen)(__GLXscreenConfigs *psc); - - void (*driCreateContext)(__GLXscreenConfigs *psc, - const __GLcontextModes *mode, - GLXContext gc, - GLXContext shareList, int renderType); + __GLXDRIscreen *driScreen; #ifdef __DRI_COPY_SUB_BUFFER __DRIcopySubBufferExtension *copySubBuffer; |