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