globals.h revision 266e564d
1/* $Xorg: globals.h,v 1.4 2001/02/09 02:03:26 xorgcvs Exp $ */ 2/****************************************************************************** 3 4 5Copyright 1993, 1998 The Open Group 6 7Permission to use, copy, modify, distribute, and sell this software and its 8documentation for any purpose is hereby granted without fee, provided that 9the above copyright notice appear in all copies and that both that 10copyright notice and this permission notice appear in supporting 11documentation. 12 13The above copyright notice and this permission notice shall be included in 14all copies or substantial portions of the Software. 15 16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 23Except as contained in this notice, the name of The Open Group shall not be 24used in advertising or otherwise to promote the sale, use or other dealings 25in this Software without prior written authorization from The Open Group. 26 27Author: Ralph Mor, X Consortium 28******************************************************************************/ 29/* $XFree86: xc/lib/ICE/globals.h,v 1.4 2001/12/14 19:53:35 dawes Exp $ */ 30 31extern void _IceDefaultErrorHandler (); 32extern void _IceDefaultIOErrorHandler (); 33 34extern IcePoAuthStatus _IcePoMagicCookie1Proc (); 35extern IcePaAuthStatus _IcePaMagicCookie1Proc (); 36 37extern void _IceProcessCoreMessage (); 38 39#ifndef __UNIXOS2__ 40IceConn _IceConnectionObjs[256]; 41char *_IceConnectionStrings[256]; 42_IceProtocol _IceProtocols[255]; 43#else 44IceConn _IceConnectionObjs[256] = {0}; 45char *_IceConnectionStrings[256] = {0}; 46_IceProtocol _IceProtocols[255] = {0}; 47#endif 48int _IceConnectionCount = 0; 49 50int _IceLastMajorOpcode = 0; 51 52int _IceAuthCount = 1; 53char *_IceAuthNames[] = {"MIT-MAGIC-COOKIE-1"}; 54IcePoAuthProc _IcePoAuthProcs[] = {_IcePoMagicCookie1Proc}; 55IcePaAuthProc _IcePaAuthProcs[] = {_IcePaMagicCookie1Proc}; 56 57int _IceVersionCount = 1; 58_IceVersion _IceVersions[] = { 59 {IceProtoMajor, IceProtoMinor, _IceProcessCoreMessage}}; 60 61_IceWatchProc *_IceWatchProcs = NULL; 62 63IceErrorHandler _IceErrorHandler = _IceDefaultErrorHandler; 64IceIOErrorHandler _IceIOErrorHandler = _IceDefaultIOErrorHandler; 65