First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xgl / glx / xglx.h
bloba8c8946610a7952f00e6d04791884edc4a47de5d
1 /*
2 * Copyright © 2005 Novell, Inc.
4 * Permission to use, copy, modify, distribute, and sell this software
5 * and its documentation for any purpose is hereby granted without
6 * fee, provided that the above copyright notice appear in all copies
7 * and that both that copyright notice and this permission notice
8 * appear in supporting documentation, and that the name of
9 * Novell, Inc. not be used in advertising or publicity pertaining to
10 * distribution of the software without specific, written prior permission.
11 * Novell, Inc. makes no representations about the suitability of this
12 * software for any purpose. It is provided "as is" without express or
13 * implied warranty.
15 * NOVELL, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17 * NO EVENT SHALL NOVELL, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 * Author: David Reveman <davidr@novell.com>
26 #ifndef _XGLX_H_
27 #define _XGLX_H_
29 #include "xgl.h"
31 #ifdef _XSERVER64
32 #define _XSERVER64_tmp
33 #undef _XSERVER64
34 typedef unsigned long XID64;
35 typedef unsigned long Mask64;
36 typedef unsigned long Atom64;
37 typedef unsigned long VisualID64;
38 typedef unsigned long Time64;
39 #define XID XID64
40 #define Mask Mask64
41 #define Atom Atom64
42 #define VisualID VisualID64
43 #define Time Time64
44 typedef XID Window64;
45 typedef XID Drawable64;
46 typedef XID Font64;
47 typedef XID Pixmap64;
48 typedef XID Cursor64;
49 typedef XID Colormap64;
50 typedef XID GContext64;
51 typedef XID KeySym64;
52 #define Window Window64
53 #define Drawable Drawable64
54 #define Font Font64
55 #define Pixmap Pixmap64
56 #define Cursor Cursor64
57 #define Colormap Colormap64
58 #define GContext GContext64
59 #define KeySym KeySym64
60 #endif
62 #define GC XlibGC
63 #include <X11/Xlib.h>
64 #include <X11/Xutil.h>
65 #undef GC
67 #ifdef _XSERVER64_tmp
68 #ifndef _XSERVER64
69 #define _XSERVER64
70 #endif
71 #undef _XSERVER64_tmp
72 #undef XID
73 #undef Mask
74 #undef Atom
75 #undef VisualID
76 #undef Time
77 #undef Window
78 #undef Drawable
79 #undef Font
80 #undef Pixmap
81 #undef Cursor
82 #undef Colormap
83 #undef GContext
84 #undef KeySym
85 #endif
87 void
88 xglxInitOutput (ScreenInfo *pScreenInfo,
89 int argc,
90 char **argv);
92 Bool
93 xglxLegalModifier (unsigned int key,
94 DeviceIntPtr pDev);
96 void
97 xglxProcessInputEvents (void);
99 void
100 xglxInitInput (int argc,
101 char **argv);
103 void
104 xglxUseMsg (void);
107 xglxProcessArgument (int argc,
108 char **argv,
109 int i);
111 void
112 xglxAbort (void);
114 void
115 xglxGiveUp (void);
117 void
118 xglxOsVendorInit (void);
120 #ifndef NXGLXORG
122 void
123 xglxUseXorgMsg (void);
126 xglxProcessXorgArgument (int argc,
127 char **argv,
128 int i);
130 void
131 xglxAbortXorg (void);
133 char *
134 xglxInitXorg (void);
136 #endif
138 #endif /* _XGLX_H_ */