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