Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / dmx / dmxclient.h
1 /*
2 * Copyright (c) 1995 X Consortium
3 * Copyright 2004 Red Hat Inc., Durham, North Carolina.
4 *
5 * All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining
8 * a copy of this software and associated documentation files (the
9 * "Software"), to deal in the Software without restriction, including
10 * without limitation on the rights to use, copy, modify, merge,
11 * publish, distribute, sublicense, and/or sell copies of the Software,
12 * and to permit persons to whom the Software is furnished to do so,
13 * subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be
16 * included in all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT, THE X CONSORTIUM,
22 * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25 * OTHER DEALINGS IN THE SOFTWARE.
26 *
27 * Except as contained in this notice, the name of the X Consortium
28 * shall not be used in advertising or otherwise to promote the sale,
29 * use or other dealings in this Software without prior written
30 * authorization from the X Consortium.
31 */
32
33 /*
34 * Derived from hw/xnest/Xnest.h by Rickard E. (Rik) Faith <faith@redhat.com>
35 */
36
37 /** \file
38 * This file includes all client-side include files with proper wrapping.
39 */
40
41 #ifndef _DMXCLIENT_H_
42 #define _DMXCLIENT_H_
43
44 #define GC XlibGC
45
46 #ifdef _XSERVER64
47 #define DMX64
48 #undef _XSERVER64
49 typedef unsigned long XID64;
50 typedef unsigned long Mask64;
51 typedef unsigned long Atom64;
52 typedef unsigned long VisualID64;
53 typedef unsigned long Time64;
54
55 #define XID XID64
56 #define Mask Mask64
57 #define Atom Atom64
58 #define VisualID VisualID64
59 #define Time Time64
60 typedef XID Window64;
61 typedef XID Drawable64;
62 typedef XID Font64;
63 typedef XID Pixmap64;
64 typedef XID Cursor64;
65 typedef XID Colormap64;
66 typedef XID GContext64;
67 typedef XID KeySym64;
68
69 #define Window Window64
70 #define Drawable Drawable64
71 #define Font Font64
72 #define Pixmap Pixmap64
73 #define Cursor Cursor64
74 #define Colormap Colormap64
75 #define GContext GContext64
76 #define KeySym KeySym64
77 #endif
78
79 #include <X11/Xlib.h>
80 #include <X11/Xlibint.h> /* For _XExtension */
81 #include <X11/X.h> /* from glxserver.h */
82 #include <X11/Xmd.h> /* from glxserver.h */
83 #include <X11/Xproto.h>
84 #include <X11/Xutil.h>
85 #include <X11/Xatom.h>
86 #include <X11/cursorfont.h>
87
88 #include <X11/extensions/shape.h>
89
90 #include <X11/extensions/Xrender.h>
91 #undef PictFormatType
92
93 #include <X11/extensions/XKB.h>
94 #include "xkbstr.h"
95
96 #include <X11/extensions/XI.h>
97
98 /* Always include these, since we query them even if we don't export XINPUT. */
99 #include <X11/extensions/XInput.h> /* For XDevice */
100 #include <X11/extensions/Xext.h>
101
102 #undef GC
103
104 #ifdef DMX64
105 #define _XSERVER64
106 #undef XID
107 #undef Mask
108 #undef Atom
109 #undef VisualID
110 #undef Time
111 #undef Window
112 #undef Drawable
113 #undef Font
114 #undef Pixmap
115 #undef Cursor
116 #undef Colormap
117 #undef GContext
118 #undef KeySym
119 #endif
120
121 /* These are in exglobals.h, but that conflicts with xkbsrv.h */
122 extern int ProximityIn;
123 extern int ProximityOut;
124 extern int DeviceValuator;
125 extern int DeviceMotionNotify;
126 extern int DeviceFocusIn;
127 extern int DeviceFocusOut;
128 extern int DeviceStateNotify;
129 extern int DeviceMappingNotify;
130 extern int ChangeDeviceNotify;
131
132 /* Some protocol gets included last, after undefines. */
133 #include <X11/XKBlib.h>
134 #include <X11/extensions/XKBproto.h>
135 #include "xkbstr.h"
136 #undef XPointer
137 #include <X11/extensions/XIproto.h>
138
139 #endif