egl: Rework config lookup.
[mesa.git] / src / egl / main / egldisplay.h
index 20651e51ffdbf57ce82c1aaabda158f27586b10c..ea4e35a8b3f6a84e7b1467abdcdc9b5f002d1a66 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef EGLDISPLAY_INCLUDED
 #define EGLDISPLAY_INCLUDED
 
-#ifdef _EGL_PLATFORM_X
-#include <X11/Xlib.h>
-#endif
-
 #include "egltypedefs.h"
 #include "egldefines.h"
 #include "eglcontext.h"
@@ -48,16 +44,13 @@ struct _egl_display
    EGLint NumScreens;
    _EGLScreen **Screens;  /* array [NumScreens] */
 
+   EGLint MaxConfigs;
    EGLint NumConfigs;
    _EGLConfig **Configs;  /* array [NumConfigs] of ptr to _EGLConfig */
 
    /* lists of linked contexts and surface */
    _EGLContext *ContextList;
    _EGLSurface *SurfaceList;
-
-#ifdef _EGL_PLATFORM_X
-   Display *Xdpy;
-#endif
 };
 
 
@@ -65,6 +58,10 @@ extern void
 _eglFiniDisplay(void);
 
 
+extern char *
+_eglSplitDisplayString(const char *dpyString, const char **args);
+
+
 extern _EGLDisplay *
 _eglNewDisplay(NativeDisplayType displayName);