xref: /OK3568_Linux_fs/external/xserver/Xi/exglobals.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /************************************************************
2*4882a593Smuzhiyun 
3*4882a593Smuzhiyun Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun                         All Rights Reserved
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun Permission to use, copy, modify, and distribute this software and its
8*4882a593Smuzhiyun documentation for any purpose and without fee is hereby granted,
9*4882a593Smuzhiyun provided that the above copyright notice appear in all copies and that
10*4882a593Smuzhiyun both that copyright notice and this permission notice appear in
11*4882a593Smuzhiyun supporting documentation, and that the name of the above listed
12*4882a593Smuzhiyun copyright holder(s) not be used in advertising or publicity pertaining
13*4882a593Smuzhiyun to distribution of the software without specific, written prior
14*4882a593Smuzhiyun permission.
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
17*4882a593Smuzhiyun TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18*4882a593Smuzhiyun AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
19*4882a593Smuzhiyun LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20*4882a593Smuzhiyun WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21*4882a593Smuzhiyun ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22*4882a593Smuzhiyun OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun ********************************************************/
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun /*****************************************************************
27*4882a593Smuzhiyun  *
28*4882a593Smuzhiyun  * Globals referenced elsewhere in the server.
29*4882a593Smuzhiyun  *
30*4882a593Smuzhiyun  */
31*4882a593Smuzhiyun #ifdef HAVE_DIX_CONFIG_H
32*4882a593Smuzhiyun #include <dix-config.h>
33*4882a593Smuzhiyun #endif
34*4882a593Smuzhiyun #include "privates.h"
35*4882a593Smuzhiyun 
36*4882a593Smuzhiyun #ifndef EXGLOBALS_H
37*4882a593Smuzhiyun #define EXGLOBALS_H 1
38*4882a593Smuzhiyun 
39*4882a593Smuzhiyun extern int IReqCode;
40*4882a593Smuzhiyun extern int IEventBase;
41*4882a593Smuzhiyun extern int BadDevice;
42*4882a593Smuzhiyun extern int BadMode;
43*4882a593Smuzhiyun extern int DeviceBusy;
44*4882a593Smuzhiyun extern int BadClass;
45*4882a593Smuzhiyun 
46*4882a593Smuzhiyun /* Note: only the ones needed in files other than extinit.c are declared */
47*4882a593Smuzhiyun extern const Mask DevicePointerMotionMask;
48*4882a593Smuzhiyun extern const Mask DevicePointerMotionHintMask;
49*4882a593Smuzhiyun extern const Mask DeviceFocusChangeMask;
50*4882a593Smuzhiyun extern const Mask DeviceStateNotifyMask;
51*4882a593Smuzhiyun extern const Mask DeviceMappingNotifyMask;
52*4882a593Smuzhiyun extern const Mask DeviceOwnerGrabButtonMask;
53*4882a593Smuzhiyun extern const Mask DeviceButtonGrabMask;
54*4882a593Smuzhiyun extern const Mask DeviceButtonMotionMask;
55*4882a593Smuzhiyun extern const Mask DevicePresenceNotifyMask;
56*4882a593Smuzhiyun extern const Mask DevicePropertyNotifyMask;
57*4882a593Smuzhiyun extern const Mask XIAllMasks;
58*4882a593Smuzhiyun 
59*4882a593Smuzhiyun extern Mask PropagateMask[];
60*4882a593Smuzhiyun 
61*4882a593Smuzhiyun extern int DeviceValuator;
62*4882a593Smuzhiyun extern int DeviceKeyPress;
63*4882a593Smuzhiyun extern int DeviceKeyRelease;
64*4882a593Smuzhiyun extern int DeviceButtonPress;
65*4882a593Smuzhiyun extern int DeviceButtonRelease;
66*4882a593Smuzhiyun extern int DeviceMotionNotify;
67*4882a593Smuzhiyun extern int DeviceFocusIn;
68*4882a593Smuzhiyun extern int DeviceFocusOut;
69*4882a593Smuzhiyun extern int ProximityIn;
70*4882a593Smuzhiyun extern int ProximityOut;
71*4882a593Smuzhiyun extern int DeviceStateNotify;
72*4882a593Smuzhiyun extern int DeviceKeyStateNotify;
73*4882a593Smuzhiyun extern int DeviceButtonStateNotify;
74*4882a593Smuzhiyun extern int DeviceMappingNotify;
75*4882a593Smuzhiyun extern int ChangeDeviceNotify;
76*4882a593Smuzhiyun extern int DevicePresenceNotify;
77*4882a593Smuzhiyun extern int DevicePropertyNotify;
78*4882a593Smuzhiyun 
79*4882a593Smuzhiyun extern RESTYPE RT_INPUTCLIENT;
80*4882a593Smuzhiyun 
81*4882a593Smuzhiyun extern DevPrivateKeyRec XIClientPrivateKeyRec;
82*4882a593Smuzhiyun 
83*4882a593Smuzhiyun #define XIClientPrivateKey (&XIClientPrivateKeyRec)
84*4882a593Smuzhiyun 
85*4882a593Smuzhiyun #endif                          /* EXGLOBALS_H */
86