winglobals.h revision 35c4bbdf
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; 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#ifdef XWIN_CLIPBOARD 67 68/* Typedef for DIX wrapper functions */ 69typedef int (*winDispatchProcPtr) (ClientPtr); 70 71/* 72 * Wrapped DIX functions 73 */ 74extern winDispatchProcPtr winProcEstablishConnectionOrig; 75#endif 76extern Bool g_fUnicodeClipboard; 77extern Bool g_fClipboard; 78extern Bool g_fClipboardStarted; 79 80/* The global X default icons */ 81#if defined(XWIN_MULTIWINDOW) 82extern HICON g_hIconX; 83extern HICON g_hSmallIconX; 84#endif 85 86#ifdef XWIN_MULTIWINDOW 87extern DWORD g_dwCurrentThreadID; 88#endif 89 90extern Bool g_fKeyboardHookLL; 91extern Bool g_fButton[3]; 92 93#ifdef XWIN_MULTIWINDOWEXTWM 94extern Bool g_fNoConfigureWindow; 95#endif 96 97extern pthread_mutex_t g_pmTerminating; 98 99#endif /* WINGLOBALS_H */ 100