1
/* $XFree86: xc/include/extensions/Xagstr.h,v 1.5 2001/12/17 20:52:24 dawes Exp $ */
3
Copyright 1996, 1998, 2001 The Open Group
5
Permission to use, copy, modify, distribute, and sell this software and its
6
documentation for any purpose is hereby granted without fee, provided that
7
the above copyright notice appear in all copies and that both that
8
copyright notice and this permission notice appear in supporting
11
The above copyright notice and this permission notice shall be included
12
in all copies or substantial portions of the Software.
14
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
18
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
OTHER DEALINGS IN THE SOFTWARE.
22
Except as contained in this notice, the name of The Open Group shall
23
not be used in advertising or otherwise to promote the sale, use or
24
other dealings in this Software without prior written authorization
27
/* $Xorg: Xagstr.h,v 1.6 2001/02/09 02:03:24 xorgcvs Exp $ */
29
#ifndef _XAGSTR_H_ /* { */
32
#include <X11/extensions/Xag.h>
34
#define XAppGroup CARD32
36
#define XAGNAME "XC-APPGROUP"
38
#define XAG_MAJOR_VERSION 1 /* current version numbers */
39
#define XAG_MINOR_VERSION 0
41
#define XagWindowTypeX11 0
42
#define XagWindowTypeMacintosh 1
43
#define XagWindowTypeWin32 2
44
#define XagWindowTypeWin16 3
47
* Redefine some basic types used by structures defined herein. This allows
48
* both the library and server to view communicated data as 32-bit entities,
49
* thus preventing problems on 64-bit architectures where libXext sees this
50
* data as 64 bits and the server sees it as 32 bits.
53
#define Colormap CARD32
54
#define VisualID CARD32
57
typedef struct _XagQueryVersion {
58
CARD8 reqType; /* always XagReqCode */
59
CARD8 xagReqType; /* always X_XagQueryVersion */
61
CARD16 client_major_version B16;
62
CARD16 client_minor_version B16;
63
} xXagQueryVersionReq;
64
#define sz_xXagQueryVersionReq 8
67
BYTE type; /* X_Reply */
69
CARD16 sequence_number B16;
71
CARD16 server_major_version B16;
72
CARD16 server_minor_version B16;
78
} xXagQueryVersionReply;
79
#define sz_xXagQueryVersionReply 32
81
/* Set AppGroup Attributes masks */
82
#define XagSingleScreenMask 1 << 0
83
#define XagDefaultRootMask 1 << XagNdefaultRoot
84
#define XagRootVisualMask 1 << XagNrootVisual
85
#define XagDefaultColormapMask 1 << XagNdefaultColormap
86
#define XagBlackPixelMask 1 << XagNblackPixel
87
#define XagWhitePixelMask 1 << XagNwhitePixel
88
#define XagAppGroupLeaderMask 1 << XagNappGroupLeader
90
typedef struct _XagCreate {
91
CARD8 reqType; /* always XagReqCode */
92
CARD8 xagReqType; /* always X_XagCreate */
94
XAppGroup app_group B32;
95
CARD32 attrib_mask B32; /* LISTofVALUE follows */
97
#define sz_xXagCreateReq 12
99
typedef struct _XagDestroy {
100
CARD8 reqType; /* always XagReqCode */
101
CARD8 xagReqType; /* always X_XagDestroy */
103
XAppGroup app_group B32;
105
#define sz_xXagDestroyReq 8
107
typedef struct _XagGetAttr {
108
CARD8 reqType; /* always XagReqCode */
109
CARD8 xagReqType; /* always X_XagGetAttr */
111
XAppGroup app_group B32;
113
#define sz_xXagGetAttrReq 8
116
BYTE type; /* X_Reply */
118
CARD16 sequence_number B16;
120
Window default_root B32;
121
VisualID root_visual B32;
122
Colormap default_colormap B32;
123
CARD32 black_pixel B32;
124
CARD32 white_pixel B32;
126
BOOL app_group_leader;
129
#define sz_xXagGetAttrReply 32
131
typedef struct _XagQuery {
132
CARD8 reqType; /* always XagReqCode */
133
CARD8 xagReqType; /* always X_XagQuery */
137
#define sz_xXagQueryReq 8
140
BYTE type; /* X_Reply */
142
CARD16 sequence_number B16;
144
XAppGroup app_group B32;
151
#define sz_xXagQueryReply 32
153
typedef struct _XagCreateAssoc {
154
CARD8 reqType; /* always XagReqCode */
155
CARD8 xagReqType; /* always X_XagCreateAssoc */
158
CARD16 window_type B16;
159
CARD16 system_window_len B16; /* LISTofCARD8 follows */
160
} xXagCreateAssocReq;
161
#define sz_xXagCreateAssocReq 12
163
typedef struct _XagDestroyAssoc {
164
CARD8 reqType; /* always XagReqCode */
165
CARD8 xagReqType; /* always X_XagDestroyAssoc */
168
} xXagDestroyAssocReq;
169
#define sz_xXagDestroyAssocReq 8
173
* Cancel the previous redefinition of the basic types, thus restoring their
181
#endif /* } _XAGSTR_H_ */