st/xa: Fix crosscompile builds with nonstandard ld locations
[mesa.git] / src / egl / main / eglglobals.h
1 #ifndef EGLGLOBALS_INCLUDED
2 #define EGLGLOBALS_INCLUDED
3
4
5 #include "egltypedefs.h"
6 #include "eglmutex.h"
7
8
9 /**
10 * Global library data
11 */
12 struct _egl_global
13 {
14 _EGLMutex *Mutex;
15
16 /* the list of all displays */
17 _EGLDisplay *DisplayList;
18
19 EGLint NumAtExitCalls;
20 void (*AtExitCalls[10])(void);
21 };
22
23
24 extern struct _egl_global _eglGlobal;
25
26
27 extern void
28 _eglAddAtExitCall(void (*func)(void));
29
30
31 #endif /* EGLGLOBALS_INCLUDED */