- Main Page
- Data Structures
- Files

- File List
- Globals

# dmxclient.h

Go to the documentation of this file.

    00001 /*
    00002  * Copyright (c) 1995  X Consortium
    00003  * Copyright 2004 Red Hat Inc., Durham, North Carolina.
    00004  *
    00005  * All Rights Reserved.
    00006  *
    00007  * Permission is hereby granted, free of charge, to any person obtaining
    00008  * a copy of this software and associated documentation files (the
    00009  * "Software"), to deal in the Software without restriction, including
    00010  * without limitation on the rights to use, copy, modify, merge,
    00011  * publish, distribute, sublicense, and/or sell copies of the Software,
    00012  * and to permit persons to whom the Software is furnished to do so,
    00013  * subject to the following conditions:
    00014  *
    00015  * The above copyright notice and this permission notice shall be
    00016  * included in all copies or substantial portions of the Software.
    00017  *
    00018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    00019  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    00020  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    00021  * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT, THE X CONSORTIUM,
    00022  * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    00023  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
    00024  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    00025  * OTHER DEALINGS IN THE SOFTWARE.
    00026  *
    00027  * Except as contained in this notice, the name of the X Consortium
    00028  * shall not be used in advertising or otherwise to promote the sale,
    00029  * use or other dealings in this Software without prior written
    00030  * authorization from the X Consortium.
    00031  */
    00032
    00033 /*
    00034  * Derived from hw/xnest/Xnest.h by Rickard E. (Rik) Faith <faith@redhat.com>
    00035  */
    00036
    00041 #ifndef _DMXCLIENT_H_
    00042 #define _DMXCLIENT_H_
    00043
    00044 #define GC XlibGC
    00045
    00046 #ifdef _XSERVER64
    00047 #define DMX64
    00048 #undef _XSERVER64
    00049 typedef unsigned long XID64;
    00050 typedef unsigned long Mask64;
    00051 typedef unsigned long Atom64;
    00052 typedef unsigned long VisualID64;
    00053 typedef unsigned long Time64;
    00054 #define XID           XID64
    00055 #define Mask          Mask64
    00056 #define Atom          Atom64
    00057 #define VisualID      VisualID64
    00058 #define Time          Time64
    00059 typedef XID           Window64;
    00060 typedef XID           Drawable64;
    00061 typedef XID           Font64;
    00062 typedef XID           Pixmap64;
    00063 typedef XID           Cursor64;
    00064 typedef XID           Colormap64;
    00065 typedef XID           GContext64;
    00066 typedef XID           KeySym64;
    00067 #define Window        Window64
    00068 #define Drawable      Drawable64
    00069 #define Font          Font64
    00070 #define Pixmap        Pixmap64
    00071 #define Cursor        Cursor64
    00072 #define Colormap      Colormap64
    00073 #define GContext      GContext64
    00074 #define KeySym        KeySym64
    00075 #endif
    00076
    00077 #include <X11/Xlib.h>
    00078 #include <X11/Xlibint.h>        /* For _XExtension */
    00079 #include <X11/X.h>              /* from glxserver.h */
    00080 #include <X11/Xmd.h>            /* from glxserver.h */
    00081 #include <X11/Xproto.h>
    00082 #include <X11/Xutil.h>
    00083 #include <X11/Xatom.h>
    00084 #include <X11/cursorfont.h>
    00085 #include <X11/Xmu/SysUtil.h>    /* For XmuSnprintf */
    00086
    00087 #include <X11/extensions/shape.h>
    00088
    00089 #include <X11/extensions/Xrender.h>
    00090 #undef PictFormatType
    00091
    00092 #include <X11/extensions/XKB.h>
    00093 #include "xkbstr.h"
    00094
    00095 #include <X11/extensions/XI.h>
    00096
    00097 /* Always include these, since we query them even if we don't export XINPUT. */
    00098 #include <X11/extensions/XInput.h> /* For XDevice */
    00099 #include <X11/extensions/Xext.h>
    00100
    00101 #undef GC
    00102
    00103 #ifdef DMX64
    00104 #define _XSERVER64
    00105 #undef XID
    00106 #undef Mask
    00107 #undef Atom
    00108 #undef VisualID
    00109 #undef Time
    00110 #undef Window
    00111 #undef Drawable
    00112 #undef Font
    00113 #undef Pixmap
    00114 #undef Cursor
    00115 #undef Colormap
    00116 #undef GContext
    00117 #undef KeySym
    00118 #endif
    00119
    00120 /* These are in exglobals.h, but that conflicts with xkbsrv.h */
    00121 extern int ProximityIn;
    00122 extern int ProximityOut;
    00123 extern int DeviceValuator;
    00124 extern int DeviceMotionNotify;
    00125 extern int DeviceFocusIn;
    00126 extern int DeviceFocusOut;
    00127 extern int DeviceStateNotify;
    00128 extern int DeviceMappingNotify;
    00129 extern int ChangeDeviceNotify;
    00130
    00131 /* Some protocol gets included last, after undefines. */
    00132 #include <X11/XKBlib.h>
    00133 #include <X11/extensions/XKBproto.h>
    00134 #include "xkbstr.h"
    00135 #undef XPointer
    00136 #include <X11/extensions/XIproto.h>
    00137
    00138 #endif