Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / xwin / winglobals.h
CommitLineData
a09e091a
JB
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;
53
54extern Bool g_fNoHelpMessageBox;
55extern Bool g_fSilentDupError;
56extern Bool g_fNativeGl;
57
58extern HWND g_hDlgDepthChange;
59extern HWND g_hDlgExit;
60extern HWND g_hDlgAbout;
61
62extern Bool g_fSoftwareCursor;
63extern Bool g_fCursor;
64
65#ifdef XWIN_CLIPBOARD
66
67/* Typedef for DIX wrapper functions */
68typedef int (*winDispatchProcPtr) (ClientPtr);
69
70/*
71 * Wrapped DIX functions
72 */
73extern winDispatchProcPtr winProcEstablishConnectionOrig;
74extern winDispatchProcPtr winProcSetSelectionOwnerOrig;
75#endif
76
77/* The global X default icons */
78#if defined(XWIN_MULTIWINDOW)
79extern HICON g_hIconX;
80extern HICON g_hSmallIconX;
81#endif
82
83#ifdef XWIN_MULTIWINDOW
84extern DWORD g_dwCurrentThreadID;
85#endif
86
87extern Bool g_fKeyboardHookLL;
88extern Bool g_fButton[3];
89
90#ifdef XWIN_MULTIWINDOWEXTWM
91extern Bool g_fNoConfigureWindow;
92#endif
93
94extern pthread_mutex_t g_pmTerminating;
95
96#endif /* WINGLOBALS_H */