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