diff options
author | Kristian Høgsberg <[email protected]> | 2008-03-08 19:02:10 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2008-03-08 19:10:21 -0500 |
commit | 425f9ed44e576aef27f7ab98968043f7f180d0fd (patch) | |
tree | 4ec32246623ecb9eb4d10835dca84b74d4115825 /src/glx/x11/glxclient.h | |
parent | f585cb29b827104b9ea04cb11e3e3087ef1684c0 (diff) |
Abstract __DRIdisplayPrivateRec away in dri_glx.c.
This patch moves __DRIdisplayPrivateRec definition into dri_glx.c and
let's dri_glx.c allocate the __DRIdisplay struct pointer to from
__GLXdisplayPrivate.
A small step towards moving more of the dri functionality into dri_glx.c.
Diffstat (limited to 'src/glx/x11/glxclient.h')
-rw-r--r-- | src/glx/x11/glxclient.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/glx/x11/glxclient.h b/src/glx/x11/glxclient.h index e62eec822e8..b3f07a30b6e 100644 --- a/src/glx/x11/glxclient.h +++ b/src/glx/x11/glxclient.h @@ -92,24 +92,19 @@ typedef struct _glapi_table __GLapi; * Display dependent methods. This structure is initialized during the * \c driCreateDisplay call. */ -struct __DRIdisplayRec { +typedef struct __GLXDRIdisplayRec __GLXDRIdisplay; +struct __GLXDRIdisplayRec { /** * Method to destroy the private DRI display data. */ - void (*destroyDisplay)(Display *dpy, void *displayPrivate); - - /** - * Opaque pointer to private per display direct rendering data. - * \c NULL if direct rendering is not supported on this display. - */ - struct __DRIdisplayPrivateRec *private; + void (*destroyDisplay)(__GLXDRIdisplay *display); }; /* ** Function to create and DRI display data and initialize the display ** dependent methods. */ -extern void *driCreateDisplay(Display *dpy, __DRIdisplay *pdisp); +extern __GLXDRIdisplay *driCreateDisplay(Display *dpy); extern void driCreateScreen(__GLXscreenConfigs *psc, int screen, __GLXdisplayPrivate *priv); extern void driDestroyScreen(__GLXscreenConfigs *psc); @@ -529,7 +524,7 @@ struct __GLXdisplayPrivateRec { /** * Per display direct rendering interface functions and data. */ - __DRIdisplay driDisplay; + __GLXDRIdisplay *driDisplay; #endif }; |