45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (c) 1995 X Consortium
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 2004 Red Hat Inc., Durham, North Carolina.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining
45e9809aff7304721fddb95654901b32195c9c7avboxsync * a copy of this software and associated documentation files (the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * "Software"), to deal in the Software without restriction, including
45e9809aff7304721fddb95654901b32195c9c7avboxsync * without limitation on the rights to use, copy, modify, merge,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * publish, distribute, sublicense, and/or sell copies of the Software,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and to permit persons to whom the Software is furnished to do so,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be
45e9809aff7304721fddb95654901b32195c9c7avboxsync * included in all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
45e9809aff7304721fddb95654901b32195c9c7avboxsync * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
45e9809aff7304721fddb95654901b32195c9c7avboxsync * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT, THE X CONSORTIUM,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45e9809aff7304721fddb95654901b32195c9c7avboxsync * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Except as contained in this notice, the name of the X Consortium
45e9809aff7304721fddb95654901b32195c9c7avboxsync * shall not be used in advertising or otherwise to promote the sale,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * use or other dealings in this Software without prior written
45e9809aff7304721fddb95654901b32195c9c7avboxsync * authorization from the X Consortium.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Derived from hw/xnest/Xnest.h by Rickard E. (Rik) Faith <faith@redhat.com>
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/** \file
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This file includes all client-side include files with proper wrapping.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _DMXCLIENT_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _DMXCLIENT_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GC XlibGC
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef _XSERVER64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define DMX64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef _XSERVER64
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef unsigned long XID64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef unsigned long Mask64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef unsigned long Atom64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef unsigned long VisualID64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef unsigned long Time64;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XID XID64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Mask Mask64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Atom Atom64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VisualID VisualID64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Time Time64
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID Window64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID Drawable64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID Font64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID Pixmap64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID Cursor64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID Colormap64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID GContext64;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID KeySym64;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Window Window64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Drawable Drawable64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Font Font64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Pixmap Pixmap64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Cursor Cursor64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define Colormap Colormap64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GContext GContext64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define KeySym KeySym64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/Xlib.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/Xlibint.h> /* For _XExtension */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/X.h> /* from glxserver.h */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/Xmd.h> /* from glxserver.h */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/Xproto.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/Xutil.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/Xatom.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/cursorfont.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/Xmu/SysUtil.h> /* For XmuSnprintf */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef SHAPE
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/shape.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef RENDER
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/Xrender.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef PictFormatType
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef XKB
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/XKB.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/XKBstr.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef XINPUT
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/XI.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Always include these, since we query them even if we don't export XINPUT. */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/XInput.h> /* For XDevice */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/Xext.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef GC
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef DMX64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _XSERVER64
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef XID
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Mask
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Atom
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef VisualID
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Time
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Window
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Drawable
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Font
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Pixmap
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Cursor
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef Colormap
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef GContext
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef KeySym
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* These are in exglobals.h, but that conflicts with xkbsrv.h */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int ProximityIn;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int ProximityOut;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int DeviceValuator;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int DeviceMotionNotify;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int DeviceFocusIn;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int DeviceFocusOut;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int DeviceStateNotify;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int DeviceMappingNotify;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int ChangeDeviceNotify;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Some protocol gets included last, after undefines. */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/XKBlib.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef XKB
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/XKBproto.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef XKB_IN_SERVER
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XKB_IN_SERVER
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <xkbsrv.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef XPointer
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/extensions/XIproto.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif