]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/Xagstr.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / include / extensions / Xagstr.h
1 /*
2 Copyright (c) 1996  X Consortium
3
4 Permission is hereby granted, free of charge, to any person obtaining
5 a copy of this software and associated documentation files (the
6 "Software"), to deal in the Software without restriction, including
7 without limitation the rights to use, copy, modify, merge, publish,
8 distribute, sublicense, and sell copies of the Software, and to
9 permit persons to whom the Software is furnished to do so, subject to
10 the following conditions:
11
12 The above copyright notice and this permission notice shall be included
13 in all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 OTHER DEALINGS IN THE SOFTWARE.
22
23 Except as contained in this notice, the name of the X Consortium shall
24 not be used in advertising or otherwise to promote the sale, use or
25 other dealings in this Software without prior written authorization
26 from the X Consortium.
27 */
28 /* $XConsortium: Xagstr.h /main/3 1996/11/12 12:19:03 swick $ */
29
30 #ifndef _XAGSTR_H_ /* { */
31 #define _XAGSTR_H_
32
33 #include "Xag.h"
34
35 #define XAppGroup CARD32
36
37 #define XAGNAME "XC-APPGROUP"
38
39 #define XAG_MAJOR_VERSION       1       /* current version numbers */
40 #define XAG_MINOR_VERSION       0
41
42 #define XagWindowTypeX11        0
43 #define XagWindowTypeMacintosh  1
44 #define XagWindowTypeWin32      2
45 #define XagWindowTypeWin16      3
46
47 typedef struct _XagQueryVersion {
48     CARD8       reqType;        /* always XagReqCode */
49     CARD8       xagReqType;     /* always X_XagQueryVersion */
50     CARD16      length B16;
51     CARD16      client_major_version B16;
52     CARD16      client_minor_version B16;
53 } xXagQueryVersionReq;
54 #define sz_xXagQueryVersionReq          8
55
56 typedef struct {
57     BYTE        type;           /* X_Reply */
58     BOOL        pad1;
59     CARD16      sequence_number B16;
60     CARD32      length B32;
61     CARD16      server_major_version B16;
62     CARD16      server_minor_version B16;
63     CARD32      pad2 B32;
64     CARD32      pad3 B32;
65     CARD32      pad4 B32;
66     CARD32      pad5 B32;
67     CARD32      pad6 B32;
68 } xXagQueryVersionReply;
69 #define sz_xXagQueryVersionReply        32
70
71 /* Set AppGroup Attributes masks */
72 #define XagSingleScreenMask             1 << XagNsingleScreen
73 #define XagDefaultRootMask              1 << XagNdefaultRoot
74 #define XagRootVisualMask               1 << XagNrootVisual
75 #define XagDefaultColormapMask          1 << XagNdefaultColormap
76 #define XagBlackPixelMask               1 << XagNblackPixel
77 #define XagWhitePixelMask               1 << XagNwhitePixel
78 #define XagAppGroupLeaderMask           1 << XagNappGroupLeader
79
80 typedef struct _XagCreate {
81     CARD8       reqType;        /* always XagReqCode */
82     CARD8       xagReqType;     /* always X_XagCreate */
83     CARD16      length B16;
84     XAppGroup   app_group B32;
85     CARD32      attrib_mask B32; /* LISTofVALUE follows */
86 } xXagCreateReq;
87 #define sz_xXagCreateReq                12
88
89 typedef struct _XagDestroy {
90     CARD8       reqType;        /* always XagReqCode */
91     CARD8       xagReqType;     /* always X_XagDestroy */
92     CARD16      length B16;
93     XAppGroup   app_group  B32;
94 } xXagDestroyReq;
95 #define sz_xXagDestroyReq               8
96
97 typedef struct _XagGetAttr {
98     CARD8       reqType;        /* always XagReqCode */
99     CARD8       xagReqType;     /* always X_XagGetAttr */
100     CARD16      length B16;
101     XAppGroup   app_group B32;
102 } xXagGetAttrReq;
103 #define sz_xXagGetAttrReq               8
104
105 typedef struct {
106     BYTE        type;           /* X_Reply */
107     BOOL        pad1;
108     CARD16      sequence_number B16;
109     CARD32      length B32;
110     Window      default_root B32;
111     VisualID    root_visual B32;
112     Colormap    default_colormap B32;
113     CARD32      black_pixel B32;
114     CARD32      white_pixel B32;
115     BOOL        single_screen;
116     BOOL        app_group_leader;
117     CARD16      pad2 B16;
118 } xXagGetAttrReply;
119 #define sz_xXagGetAttrReply             32
120
121 typedef struct _XagQuery {
122     CARD8       reqType;        /* always XagReqCode */
123     CARD8       xagReqType;     /* always X_XagQuery */
124     CARD16      length B16;
125     CARD32      resource B32;
126 } xXagQueryReq;
127 #define sz_xXagQueryReq                 8
128
129 typedef struct {
130     BYTE        type;           /* X_Reply */
131     BOOL        pad1;
132     CARD16      sequence_number B16;
133     CARD32      length B32;
134     XAppGroup   app_group B32;
135     CARD32      pad2 B32;
136     CARD32      pad3 B32;
137     CARD32      pad4 B32;
138     CARD32      pad5 B32;
139     CARD32      pad6 B32;
140 } xXagQueryReply;
141 #define sz_xXagQueryReply               32
142
143 typedef struct _XagCreateAssoc {
144     CARD8       reqType;        /* always XagReqCode */
145     CARD8       xagReqType;     /* always X_XagCreateAssoc */
146     CARD16      length B16;
147     Window      window B32;
148     CARD16      window_type B16;
149     CARD16      system_window_len B16; /* LISTofCARD8 follows */
150 } xXagCreateAssocReq;
151 #define sz_xXagCreateAssocReq           12
152
153 typedef struct _XagDestroyAssoc {
154     CARD8       reqType;        /* always XagReqCode */
155     CARD8       xagReqType;     /* always X_XagDestroyAssoc */
156     CARD16      length B16;
157     Window      window B32;
158 } xXagDestroyAssocReq;
159 #define sz_xXagDestroyAssocReq          8
160
161 #undef XAppGroup
162
163 #endif /* } _XAGSTR_H_ */
164