summaryrefslogtreecommitdiff
path: root/src/egl/main/egldriver.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-11-29 04:43:37 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-11-29 04:43:37 +0000
commit5285c32a17a8ec260dcb5d412d862e50bced0ce9 (patch)
treeb063f970ad1dfb328f813da4802e6f0f548687a2 /src/egl/main/egldriver.h
parentf576450cae38ee247134f2463e8dbdeecb70ecf4 (diff)
Put extension flags, string into separate struct.
Diffstat (limited to 'src/egl/main/egldriver.h')
-rw-r--r--src/egl/main/egldriver.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h
index 6d2d7075cd..51ec27c06f 100644
--- a/src/egl/main/egldriver.h
+++ b/src/egl/main/egldriver.h
@@ -5,11 +5,23 @@
#include "egltypedefs.h"
#include "eglapi.h"
-/* should probably use a dynamic-lengh string, but this will do */
+/* should probably use a dynamic-length string, but this will do */
#define MAX_EXTENSIONS_LEN 1000
/**
+ * Optional EGL extensions info.
+ */
+struct _egl_extensions
+{
+ EGLBoolean MESA_screen_surface;
+ EGLBoolean MESA_copy_context;
+
+ char String[MAX_EXTENSIONS_LEN];
+};
+
+
+/**
* Base class for device drivers.
*/
struct _egl_driver
@@ -25,12 +37,7 @@ struct _egl_driver
_EGLAPI API;
- /* Extension enable flags */
- EGLBoolean MESA_screen_surface;
- EGLBoolean MESA_copy_context;
-
- /* Extensions string */
- char Extensions[MAX_EXTENSIONS_LEN];
+ _EGLExtensions Extensions;
};