/*
* $Xorg: Xproto.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $
*/
/* Definitions for the X window system used by server and c bindings */
/*
* This packet-construction scheme makes the following assumptions:
*
* 1. The compiler is able
* to generate code which addresses one- and two-byte quantities.
* In the worst case, this would be done with bit-fields. If bit-fields
* are used it may be necessary to reorder the request fields in this file,
* depending on the order in which the machine assigns bit fields to
* machine words. There may also be a problem with sign extension,
* as K+R specify that bitfields are always unsigned.
*
* 2. 2- and 4-byte fields in packet structures must be ordered by hand
* such that they are naturally-aligned, so that no compiler will ever
* insert padding bytes.
*
* 3. All packets are hand-padded to a multiple of 4 bytes, for
* the same reason.
*/
#ifndef XPROTO_H
#define XPROTO_H
/***********************************************************
Copyright 1987, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
#include <X11/Xprotostr.h>
/*
* Define constants for the sizes of the network packets. The sz_ prefix is
* used instead of something more descriptive so that the symbols are no more
* than 32 characters in length (which causes problems for some compilers).
*/
/* For the purpose of the structure definitions in this file,
we must redefine the following types in terms of Xmd.h's types, which may
include bit fields. All of these are #undef'd at the end of this file,
restoring the definitions in X.h. */
#define xFalse 0
/*****************
connection setup structure. This is followed by
numRoots xWindowRoot structs.
*****************/
typedef struct {
typedef struct {
typedef struct {
} xConnSetup;
typedef struct {
/* window root */
typedef struct {
} xDepth;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
#else
#endif
} xVisualType;
typedef struct {
} xWindowRoot;
/*****************************************************************
* Structure Defns
* Structures needed for replies
*****************************************************************/
/* Used in GetMotionEvents */
typedef struct {
} xTimecoord;
typedef struct {
} xHostEntry;
typedef struct {
} xCharInfo;
typedef struct {
} xFontProp;
/*
* non-aligned big-endian font ID follows this struct
*/
typedef struct { /* followed by string */
for font change, or 0 if just delta given */
} xTextElt;
typedef struct {
} xColorItem;
typedef struct {
} xrgb;
/*****************
* XRep:
* meant to be 32 byte quantity
*****************/
/* GenericReply is the common format of all replies. The "data" items
are specific to each individual reply type. */
typedef struct {
/* Individual reply formats. */
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
#else
#endif
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
/* Warning: this MUST match (up to component renaming) xListFontsWithInfoReply */
typedef struct _xQueryFontReply {
#ifndef WORD64
#endif
#ifndef WORD64
#endif
typedef struct {
typedef struct {
/* Warning: this MUST match (up to component renaming) xQueryFontReply */
typedef struct {
#ifndef WORD64
#endif
#ifndef WORD64
#endif
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
/*****************************************************************
* Xerror
* All errors are 32 bytes
*****************************************************************/
typedef struct {
} xError;
/*****************************************************************
* xEvent
* All events are 32 bytes
*****************************************************************/
typedef struct _xEvent {
union {
struct {
} u;
struct {
struct {
} enterLeave;
struct {
} focus;
struct {
} expose;
struct {
struct {
} noExposure;
struct {
} visibility;
struct {
} createNotify;
/*
* The event feilds in the structures for DestroyNotify, UnmapNotify,
* MapNotify, ReparentNotify, ConfigureNotify, CirclulateNotify, GravityNotify,
* must be at the same offset because server internal code is depending upon
* this to patch up the events before they are delivered.
* Also note that MapRequest, ConfigureRequest and CirculateRequest have
* the same offset for the event window.
*/
struct {
struct {
} unmapNotify;
struct {
} mapNotify;
struct {
} mapRequest;
struct {
} reparent;
struct {
struct {
struct {
} gravity;
struct {
struct {
/* The event field in the circulate record is really the parent when this
is used as a CirculateRequest insteaad of a CircluateNotify */
} circulate;
struct {
} property;
struct {
struct {
struct {
struct {
#if defined(__cplusplus) || defined(c_plusplus)
#else
#endif
} colormap;
struct {
struct {
union {
struct {
} l;
struct {
} s;
struct {
} b;
} u;
} u;
} xEvent;
/* KeymapNotify events are not included in the above union because they
are different from all other events: they do not have a "detail"
or "sequenceNumber", so there is room for a 248-bit key mask. */
typedef struct {
} xKeymapEvent;
/* XReply is the union of all the replies above whose "fixed part"
fits in 32 bytes. It does NOT include GetWindowAttributesReply,
QueryFontReply, QueryKeymapReply, or GetKeyboardControlReply
ListFontsWithInfoReply */
typedef union {
} xReply;
/*****************************************************************
* REQUESTS
*****************************************************************/
/* Request structure */
typedef struct _xReq {
of whole request, including this header */
} xReq;
/*****************************************************************
* structures that follow request.
*****************************************************************/
/* ResourceReq is used for any request which has a resource ID
(or Atom or Time) as its one and only argument. */
typedef struct {
} xResourceReq;
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
#else
#endif
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct { /* followed by padded string */
typedef struct {
typedef struct {
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
#else
#endif
typedef struct {
typedef struct {
typedef struct {
#ifdef WORD64
/* the structure should have been quad-aligned */
#else
#endif /* WORD64 */
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
} xGrabKeyReq;
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
} xOpenFontReq;
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
} xCreateGCReq;
typedef struct {
} xChangeGCReq;
typedef struct {
} xCopyGCReq;
typedef struct {
typedef struct {
typedef struct {
typedef struct {
} xCopyAreaReq;
typedef struct {
typedef struct {
/* The following used for PolySegment, PolyRectangle, PolyArc, PolyFillRectangle, PolyFillArc */
typedef struct {
typedef struct _FillPolyReq {
} xFillPolyReq;
typedef struct _PutImageReq {
} xPutImageReq;
typedef struct {
} xGetImageReq;
/* the folloiwng used by PolyText8 and PolyText16 */
typedef struct {
} xPolyTextReq;
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct { /* followed by string of length len */
typedef struct {
typedef struct {
typedef struct {
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
#else
#endif
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
} xBellReq;
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct {
typedef struct { /* followed by LIST of ATOM */
/* Reply codes */
/* Request codes */
/* restore these definitions back to the typedefs in X.h */
#endif /* XPROTO_H */