diff options
author | Brian Paul <[email protected]> | 2008-05-27 16:48:23 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-27 16:48:23 -0600 |
commit | 6052af172f0241e6678cd16efac0a0f14f40146c (patch) | |
tree | defc05f9ffee989aac7faf6d7ba690f5f11e4e93 /src/egl/main/egldisplay.h | |
parent | 721ba15bf4596b2e9589e7656005b387724875c3 (diff) |
minor overhaul/re-org of driver selection/loading code
Diffstat (limited to 'src/egl/main/egldisplay.h')
-rw-r--r-- | src/egl/main/egldisplay.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h index fe7b7884555..be134374ca4 100644 --- a/src/egl/main/egldisplay.h +++ b/src/egl/main/egldisplay.h @@ -1,15 +1,19 @@ #ifndef EGLDISPLAY_INCLUDED #define EGLDISPLAY_INCLUDED +#ifdef _EGL_PLATFORM_X +#include <X11/Xlib.h> +#endif #include "egltypedefs.h" struct _egl_display { + EGLNativeDisplayType NativeDisplay; EGLDisplay Handle; - char *Name; + const char *DriverName; _EGLDriver *Driver; EGLint NumScreens; @@ -17,6 +21,10 @@ struct _egl_display EGLint NumConfigs; _EGLConfig *Configs; /* array [NumConfigs] */ + +#ifdef _EGL_PLATFORM_X + Display *Xdpy; +#endif }; @@ -32,6 +40,10 @@ extern _EGLDisplay * _eglLookupDisplay(EGLDisplay dpy); +extern void +_eglSaveDisplay(_EGLDisplay *dpy); + + extern _EGLDisplay * _eglGetCurrentDisplay(void); |