~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to hw/dmx/dmxclient.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
ImportĀ upstreamĀ versionĀ 7.0.0

Show diffs side-by-side

added added

removed removed

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