Debian Codegraph @

nx-X11/include/extensions/panoramiXproto.h

raw
1 /*****************************************************************
2 Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
3 Permission is hereby granted, free of charge, to any person obtaining a copy
4 of this software and associated documentation files (the "Software"), to deal
5 in the Software without restriction, including without limitation the rights
6 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 copies of the Software.
8
9 The above copyright notice and this permission notice shall be included in
10 all copies or substantial portions of the Software.
11
12 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
16 BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
17 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
18 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
20 Except as contained in this notice, the name of Digital Equipment Corporation
21 shall not be used in advertising or otherwise to promote the sale, use or other
22 dealings in this Software without prior written authorization from Digital
23 Equipment Corporation.
24 ******************************************************************/
25
26 /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
27
28 #ifndef _PANORAMIXPROTO_H_
29 #define _PANORAMIXPROTO_H_
30
31 #define PANORAMIX_PROTOCOL_NAME "XINERAMA"
32
33 #define X_PanoramiXQueryVersion 0
34 #define X_PanoramiXGetState 1
35 #define X_PanoramiXGetScreenCount 2
36 #define X_PanoramiXGetScreenSize 3
37
38 #define X_XineramaIsActive 4
39 #define X_XineramaQueryScreens 5
40
41 typedef struct _PanoramiXQueryVersion {
42 CARD8 reqType; /* always PanoramiXReqCode */
43 CARD8 panoramiXReqType; /* always X_PanoramiXQueryVersion */
44 CARD16 length B16;
45 CARD8 clientMajor;
46 CARD8 clientMinor;
47 CARD16 unused B16;
48 } xPanoramiXQueryVersionReq;
49
50 #define sz_xPanoramiXQueryVersionReq 8
51
52 typedef struct {
53 CARD8 type; /* must be X_Reply */
54 CARD8 pad1; /* unused */
55 CARD16 sequenceNumber B16; /* last sequence number */
56 CARD32 length B32; /* 0 */
57 CARD16 majorVersion B16;
58 CARD16 minorVersion B16;
59 CARD32 pad2 B32; /* unused */
60 CARD32 pad3 B32; /* unused */
61 CARD32 pad4 B32; /* unused */
62 CARD32 pad5 B32; /* unused */
63 CARD32 pad6 B32; /* unused */
64 } xPanoramiXQueryVersionReply;
65
66 #define sz_xPanoramiXQueryVersionReply 32
67
68
69 typedef struct _PanoramiXGetState {
70 CARD8 reqType; /* always PanoramiXReqCode */
71 CARD8 panoramiXReqType; /* always X_PanoramiXGetState */
72 CARD16 length B16;
73 CARD32 window B32;
74 } xPanoramiXGetStateReq;
75 #define sz_xPanoramiXGetStateReq 8
76
77 typedef struct {
78 BYTE type;
79 BYTE state;
80 CARD16 sequenceNumber B16;
81 CARD32 length B32;
82 CARD32 window B32;
83 CARD32 pad1 B32; /* unused */
84 CARD32 pad2 B32; /* unused */
85 CARD32 pad3 B32; /* unused */
86 CARD32 pad4 B32; /* unused */
87 CARD32 pad5 B32; /* unused */
88 } xPanoramiXGetStateReply;
89
90 #define sz_panoramiXGetStateReply 32
91
92 typedef struct _PanoramiXGetScreenCount {
93 CARD8 reqType; /* always PanoramiXReqCode */
94 CARD8 panoramiXReqType; /* always X_PanoramiXGetScreenCount */
95 CARD16 length B16;
96 CARD32 window B32;
97 } xPanoramiXGetScreenCountReq;
98 #define sz_xPanoramiXGetScreenCountReq 8
99
100 typedef struct {
101 BYTE type;
102 BYTE ScreenCount;
103 CARD16 sequenceNumber B16;
104 CARD32 length B32;
105 CARD32 window B32;
106 CARD32 pad1 B32; /* unused */
107 CARD32 pad2 B32; /* unused */
108 CARD32 pad3 B32; /* unused */
109 CARD32 pad4 B32; /* unused */
110 CARD32 pad5 B32; /* unused */
111 } xPanoramiXGetScreenCountReply;
112 #define sz_panoramiXGetScreenCountReply 32
113
114 typedef struct _PanoramiXGetScreenSize {
115 CARD8 reqType; /* always PanoramiXReqCode */
116 CARD8 panoramiXReqType; /* always X_PanoramiXGetState */
117 CARD16 length B16;
118 CARD32 window B32;
119 CARD32 screen B32;
120 } xPanoramiXGetScreenSizeReq;
121 #define sz_xPanoramiXGetScreenSizeReq 12
122
123 typedef struct {
124 BYTE type;
125 CARD8 pad1;
126 CARD16 sequenceNumber B16;
127 CARD32 length B32;
128 CARD32 width B32;
129 CARD32 height B32;
130 CARD32 window B32;
131 CARD32 screen B32;
132 CARD32 pad2 B32; /* unused */
133 CARD32 pad3 B32; /* unused */
134 } xPanoramiXGetScreenSizeReply;
135 #define sz_panoramiXGetScreenSizeReply 32
136
137 /************ Alternate protocol ******************/
138
139 typedef struct {
140 CARD8 reqType;
141 CARD8 panoramiXReqType;
142 CARD16 length B16;
143 } xXineramaIsActiveReq;
144 #define sz_xXineramaIsActiveReq 4
145
146 typedef struct {
147 BYTE type;
148 CARD8 pad1;
149 CARD16 sequenceNumber B16;
150 CARD32 length B32;
151 CARD32 state B32;
152 CARD32 pad2 B32;
153 CARD32 pad3 B32;
154 CARD32 pad4 B32;
155 CARD32 pad5 B32;
156 CARD32 pad6 B32;
157 } xXineramaIsActiveReply;
158 #define sz_XineramaIsActiveReply 32
159
160
161 typedef struct {
162 CARD8 reqType;
163 CARD8 panoramiXReqType;
164 CARD16 length B16;
165 } xXineramaQueryScreensReq;
166 #define sz_xXineramaQueryScreensReq 4
167
168 typedef struct {
169 BYTE type;
170 CARD8 pad1;
171 CARD16 sequenceNumber B16;
172 CARD32 length B32;
173 CARD32 number B32;
174 CARD32 pad2 B32;
175 CARD32 pad3 B32;
176 CARD32 pad4 B32;
177 CARD32 pad5 B32;
178 CARD32 pad6 B32;
179 } xXineramaQueryScreensReply;
180 #define sz_XineramaQueryScreensReply 32
181
182 typedef struct {
183 INT16 x_org B16;
184 INT16 y_org B16;
185 CARD16 width B16;
186 CARD16 height B16;
187 } xXineramaScreenInfo;
188 #define sz_XineramaScreenInfo 8
189
190 #endif