74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* $XFree86: xc/include/extensions/Xagstr.h,v 1.5 2001/12/17 20:52:24 dawes Exp $ */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/*
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncCopyright 1996, 1998, 2001 The Open Group
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncPermission to use, copy, modify, distribute, and sell this software and its
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncdocumentation for any purpose is hereby granted without fee, provided that
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncthe above copyright notice appear in all copies and that both that
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynccopyright notice and this permission notice appear in supporting
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncdocumentation.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncThe above copyright notice and this permission notice shall be included
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncin all copies or substantial portions of the Software.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncOTHER DEALINGS IN THE SOFTWARE.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncExcept as contained in this notice, the name of The Open Group shall
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncnot be used in advertising or otherwise to promote the sale, use or
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncother dealings in this Software without prior written authorization
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncfrom The Open Group.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync*/
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* $Xorg: Xagstr.h,v 1.6 2001/02/09 02:03:24 xorgcvs Exp $ */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#ifndef _XAGSTR_H_ /* { */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define _XAGSTR_H_
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#include <X11/extensions/Xag.h>
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XAppGroup CARD32
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XAGNAME "XC-APPGROUP"
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XAG_MAJOR_VERSION 1 /* current version numbers */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XAG_MINOR_VERSION 0
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagWindowTypeX11 0
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagWindowTypeMacintosh 1
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagWindowTypeWin32 2
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagWindowTypeWin16 3
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/*
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync* Redefine some basic types used by structures defined herein. This allows
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync* both the library and server to view communicated data as 32-bit entities,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync* thus preventing problems on 64-bit architectures where libXext sees this
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync* data as 64 bits and the server sees it as 32 bits.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync*/
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define Colormap CARD32
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define VisualID CARD32
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define Window CARD32
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct _XagQueryVersion {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 reqType; /* always XagReqCode */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 xagReqType; /* always X_XagQueryVersion */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 length B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 client_major_version B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 client_minor_version B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagQueryVersionReq;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagQueryVersionReq 8
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync BYTE type; /* X_Reply */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync BOOL pad1;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 sequence_number B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 length B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 server_major_version B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 server_minor_version B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad2 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad3 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad4 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad5 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad6 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagQueryVersionReply;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagQueryVersionReply 32
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* Set AppGroup Attributes masks */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagSingleScreenMask 1 << 0
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagDefaultRootMask 1 << XagNdefaultRoot
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagRootVisualMask 1 << XagNrootVisual
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagDefaultColormapMask 1 << XagNdefaultColormap
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagBlackPixelMask 1 << XagNblackPixel
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagWhitePixelMask 1 << XagNwhitePixel
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XagAppGroupLeaderMask 1 << XagNappGroupLeader
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct _XagCreate {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 reqType; /* always XagReqCode */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 xagReqType; /* always X_XagCreate */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 length B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync XAppGroup app_group B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 attrib_mask B32; /* LISTofVALUE follows */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagCreateReq;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagCreateReq 12
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct _XagDestroy {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 reqType; /* always XagReqCode */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 xagReqType; /* always X_XagDestroy */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 length B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync XAppGroup app_group B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagDestroyReq;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagDestroyReq 8
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct _XagGetAttr {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 reqType; /* always XagReqCode */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 xagReqType; /* always X_XagGetAttr */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 length B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync XAppGroup app_group B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagGetAttrReq;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagGetAttrReq 8
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync BYTE type; /* X_Reply */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync BOOL pad1;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 sequence_number B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 length B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Window default_root B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync VisualID root_visual B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Colormap default_colormap B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 black_pixel B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 white_pixel B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync BOOL single_screen;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync BOOL app_group_leader;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 pad2 B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagGetAttrReply;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagGetAttrReply 32
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct _XagQuery {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 reqType; /* always XagReqCode */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 xagReqType; /* always X_XagQuery */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 length B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 resource B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagQueryReq;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagQueryReq 8
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync BYTE type; /* X_Reply */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync BOOL pad1;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 sequence_number B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 length B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync XAppGroup app_group B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad2 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad3 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad4 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad5 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD32 pad6 B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagQueryReply;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagQueryReply 32
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct _XagCreateAssoc {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 reqType; /* always XagReqCode */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 xagReqType; /* always X_XagCreateAssoc */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 length B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Window window B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 window_type B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 system_window_len B16; /* LISTofCARD8 follows */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagCreateAssocReq;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagCreateAssocReq 12
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsynctypedef struct _XagDestroyAssoc {
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 reqType; /* always XagReqCode */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD8 xagReqType; /* always X_XagDestroyAssoc */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync CARD16 length B16;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Window window B32;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync} xXagDestroyAssocReq;
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define sz_xXagDestroyAssocReq 8
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#undef XAppGroup
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/*
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Cancel the previous redefinition of the basic types, thus restoring their
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * X.h definitions.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#undef Window
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#undef Colormap
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#undef VisualID
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif /* } _XAGSTR_H_ */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync