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
39extern int g_iNumScreens;
40extern int g_iLastScreen;
41extern char *g_pszCommandLine;
42extern Bool g_fSilentFatalError;
43extern const char *g_pszLogFile;
44
45#ifdef RELOCATE_PROJECTROOT
46extern Bool g_fLogFileChanged;
47#endif
48extern int g_iLogVerbose;
49extern Bool g_fLogInited;
50
51extern Bool g_fAuthEnabled;
52extern Bool g_fXdmcpEnabled;
53extern Bool g_fCompositeAlpha;
54
55extern Bool g_fNoHelpMessageBox;
56extern Bool g_fNativeGl;
57extern Bool g_fHostInTitle;
58
59extern HWND g_hDlgDepthChange;
60extern HWND g_hDlgExit;
61extern HWND g_hDlgAbout;
62
63extern Bool g_fSoftwareCursor;
64extern Bool g_fCursor;
65
66/* Typedef for DIX wrapper functions */
67typedef int (*winDispatchProcPtr) (ClientPtr);
68
69/*
70 * Wrapped DIX functions
71 */
72extern winDispatchProcPtr winProcEstablishConnectionOrig;
73extern Bool g_fClipboard;
74extern Bool g_fClipboardStarted;
75
76/* The global X default icons */
77extern HICON g_hIconX;
78extern HICON g_hSmallIconX;
79
80extern DWORD g_dwCurrentThreadID;
81
82extern Bool g_fKeyboardHookLL;
83extern Bool g_fButton[3];
84
85extern pthread_mutex_t g_pmTerminating;
86
87#endif                          /* WINGLOBALS_H */
88