egl: remove unused Display field
[mesa.git] / src / egl / main / egldriver.h
1 #ifndef EGLDRIVER_INCLUDED
2 #define EGLDRIVER_INCLUDED
3
4
5 #include "egltypedefs.h"
6 #include "eglapi.h"
7 #include "egldefines.h"
8
9
10 /**
11 * Optional EGL extensions info.
12 */
13 struct _egl_extensions
14 {
15 EGLBoolean MESA_screen_surface;
16 EGLBoolean MESA_copy_context;
17
18 char String[_EGL_MAX_EXTENSIONS_LEN];
19 };
20
21
22 /**
23 * Base class for device drivers.
24 */
25 struct _egl_driver
26 {
27 EGLBoolean Initialized; /**< set by driver after initialized */
28
29 void *LibHandle; /**< dlopen handle */
30
31 int APImajor, APIminor; /**< as returned by eglInitialize() */
32 char Version[10]; /**< initialized from APImajor/minor */
33
34 const char *ClientAPIs;
35
36 _EGLAPI API; /**< EGL API dispatch table */
37
38 _EGLExtensions Extensions;
39 };
40
41
42 extern _EGLDriver *_eglMain(_EGLDisplay *dpy, const char *args);
43
44
45 extern const char *
46 _eglChooseDriver(_EGLDisplay *dpy);
47
48
49 extern _EGLDriver *
50 _eglOpenDriver(_EGLDisplay *dpy, const char *driverName, const char *args);
51
52
53 extern EGLBoolean
54 _eglCloseDriver(_EGLDriver *drv, EGLDisplay dpy);
55
56
57 extern _EGLDriver *
58 _eglLookupDriver(EGLDisplay d);
59
60
61 extern void
62 _eglInitDriverFallbacks(_EGLDriver *drv);
63
64
65 #endif /* EGLDRIVER_INCLUDED */