1 /*
2   File: winglobals.h
3   Purpose: declarations for global variables
4 
5   Permission is hereby granted, free of charge, to any person obtaining a
6   copy of this software and associated documentation files (the "Software"),
7   to deal in the Software without restriction, including without limitation
8   the rights to use, copy, modify, merge, publish, distribute, sublicense,
9   and/or sell copies of the Software, and to permit persons to whom the
10   Software is furnished to do so, subject to the following conditions:
11 
12   The above copyright notice and this permission notice (including the next
13   paragraph) shall be included in all copies or substantial portions of the
14   Software.
15 
16   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19   THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22   DEALINGS IN THE SOFTWARE.
23 
24 */
25 
26 #ifndef WINGLOBALS_H
27 #define WINGLOBALS_H
28 
29 #ifdef HAVE_XWIN_CONFIG_H
30 #include <xwin-config.h>
31 #endif
32 
33 #include <pthread.h>
34 
35 /*
36  * References to external symbols
37  */
38 
39 extern int g_iNumScreens;
40 extern int g_iLastScreen;
41 extern char *g_pszCommandLine;
42 extern Bool g_fSilentFatalError;
43 extern const char *g_pszLogFile;
44 
45 #ifdef RELOCATE_PROJECTROOT
46 extern Bool g_fLogFileChanged;
47 #endif
48 extern int g_iLogVerbose;
49 extern Bool g_fLogInited;
50 
51 extern Bool g_fAuthEnabled;
52 extern Bool g_fXdmcpEnabled;
53 extern Bool g_fCompositeAlpha;
54 
55 extern Bool g_fNoHelpMessageBox;
56 extern Bool g_fNativeGl;
57 extern Bool g_fHostInTitle;
58 
59 extern HWND g_hDlgDepthChange;
60 extern HWND g_hDlgExit;
61 extern HWND g_hDlgAbout;
62 
63 extern Bool g_fSoftwareCursor;
64 extern Bool g_fCursor;
65 
66 /* Typedef for DIX wrapper functions */
67 typedef int (*winDispatchProcPtr) (ClientPtr);
68 
69 /*
70  * Wrapped DIX functions
71  */
72 extern winDispatchProcPtr winProcEstablishConnectionOrig;
73 extern Bool g_fClipboard;
74 extern Bool g_fClipboardStarted;
75 
76 /* The global X default icons */
77 extern HICON g_hIconX;
78 extern HICON g_hSmallIconX;
79 
80 extern DWORD g_dwCurrentThreadID;
81 
82 extern Bool g_fKeyboardHookLL;
83 extern Bool g_fButton[3];
84 
85 extern pthread_mutex_t g_pmTerminating;
86 
87 #endif                          /* WINGLOBALS_H */
88