summaryrefslogtreecommitdiff
path: root/src/egl/main/eglglobals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/eglglobals.h')
-rw-r--r--src/egl/main/eglglobals.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/egl/main/eglglobals.h b/src/egl/main/eglglobals.h
new file mode 100644
index 0000000000..4368898020
--- /dev/null
+++ b/src/egl/main/eglglobals.h
@@ -0,0 +1,37 @@
+#ifndef EGLGLOBALS_INCLUDED
+#define EGLGLOBALS_INCLUDED
+
+
+#include "egltypedefs.h"
+#include "eglmutex.h"
+
+
+/**
+ * Global library data
+ */
+struct _egl_global
+{
+ _EGLMutex *Mutex;
+
+ /* the list of all displays */
+ _EGLDisplay *DisplayList;
+
+ EGLScreenMESA FreeScreenHandle;
+
+ /* these never change after preloading */
+ EGLint NumDrivers;
+ _EGLDriver *Drivers[10];
+
+ EGLint NumAtExitCalls;
+ void (*AtExitCalls[10])(void);
+};
+
+
+extern struct _egl_global _eglGlobal;
+
+
+extern void
+_eglAddAtExitCall(void (*func)(void));
+
+
+#endif /* EGLGLOBALS_INCLUDED */