135c4bbdfSmrg/* 235c4bbdfSmrg File: winglobals.h 335c4bbdfSmrg Purpose: declarations for global variables 435c4bbdfSmrg 535c4bbdfSmrg Permission is hereby granted, free of charge, to any person obtaining a 635c4bbdfSmrg copy of this software and associated documentation files (the "Software"), 735c4bbdfSmrg to deal in the Software without restriction, including without limitation 835c4bbdfSmrg the rights to use, copy, modify, merge, publish, distribute, sublicense, 935c4bbdfSmrg and/or sell copies of the Software, and to permit persons to whom the 1035c4bbdfSmrg Software is furnished to do so, subject to the following conditions: 1135c4bbdfSmrg 1235c4bbdfSmrg The above copyright notice and this permission notice (including the next 1335c4bbdfSmrg paragraph) shall be included in all copies or substantial portions of the 1435c4bbdfSmrg Software. 1535c4bbdfSmrg 1635c4bbdfSmrg THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1735c4bbdfSmrg IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1835c4bbdfSmrg FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1935c4bbdfSmrg THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 2035c4bbdfSmrg LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 2135c4bbdfSmrg FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2235c4bbdfSmrg DEALINGS IN THE SOFTWARE. 2335c4bbdfSmrg 2435c4bbdfSmrg*/ 2535c4bbdfSmrg 2635c4bbdfSmrg#ifndef WINGLOBALS_H 2735c4bbdfSmrg#define WINGLOBALS_H 2835c4bbdfSmrg 2935c4bbdfSmrg#ifdef HAVE_XWIN_CONFIG_H 3035c4bbdfSmrg#include <xwin-config.h> 3135c4bbdfSmrg#endif 3235c4bbdfSmrg 3335c4bbdfSmrg#include <pthread.h> 3435c4bbdfSmrg 3535c4bbdfSmrg/* 3635c4bbdfSmrg * References to external symbols 3735c4bbdfSmrg */ 3835c4bbdfSmrg 3935c4bbdfSmrgextern int g_iNumScreens; 4035c4bbdfSmrgextern int g_iLastScreen; 4135c4bbdfSmrgextern char *g_pszCommandLine; 4235c4bbdfSmrgextern Bool g_fSilentFatalError; 4335c4bbdfSmrgextern const char *g_pszLogFile; 4435c4bbdfSmrg 4535c4bbdfSmrg#ifdef RELOCATE_PROJECTROOT 4635c4bbdfSmrgextern Bool g_fLogFileChanged; 4735c4bbdfSmrg#endif 4835c4bbdfSmrgextern int g_iLogVerbose; 4935c4bbdfSmrgextern Bool g_fLogInited; 5035c4bbdfSmrg 5135c4bbdfSmrgextern Bool g_fAuthEnabled; 5235c4bbdfSmrgextern Bool g_fXdmcpEnabled; 53ed6184dfSmrgextern Bool g_fCompositeAlpha; 5435c4bbdfSmrg 5535c4bbdfSmrgextern Bool g_fNoHelpMessageBox; 5635c4bbdfSmrgextern Bool g_fNativeGl; 5735c4bbdfSmrgextern Bool g_fHostInTitle; 5835c4bbdfSmrg 5935c4bbdfSmrgextern HWND g_hDlgDepthChange; 6035c4bbdfSmrgextern HWND g_hDlgExit; 6135c4bbdfSmrgextern HWND g_hDlgAbout; 6235c4bbdfSmrg 6335c4bbdfSmrgextern Bool g_fSoftwareCursor; 6435c4bbdfSmrgextern Bool g_fCursor; 6535c4bbdfSmrg 6635c4bbdfSmrg/* Typedef for DIX wrapper functions */ 6735c4bbdfSmrgtypedef int (*winDispatchProcPtr) (ClientPtr); 6835c4bbdfSmrg 6935c4bbdfSmrg/* 7035c4bbdfSmrg * Wrapped DIX functions 7135c4bbdfSmrg */ 7235c4bbdfSmrgextern winDispatchProcPtr winProcEstablishConnectionOrig; 7335c4bbdfSmrgextern Bool g_fClipboard; 7435c4bbdfSmrgextern Bool g_fClipboardStarted; 7535c4bbdfSmrg 7635c4bbdfSmrg/* The global X default icons */ 7735c4bbdfSmrgextern HICON g_hIconX; 7835c4bbdfSmrgextern HICON g_hSmallIconX; 7935c4bbdfSmrg 8035c4bbdfSmrgextern DWORD g_dwCurrentThreadID; 8135c4bbdfSmrg 8235c4bbdfSmrgextern Bool g_fKeyboardHookLL; 8335c4bbdfSmrgextern Bool g_fButton[3]; 8435c4bbdfSmrg 8535c4bbdfSmrgextern pthread_mutex_t g_pmTerminating; 8635c4bbdfSmrg 8735c4bbdfSmrg#endif /* WINGLOBALS_H */ 88