VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/4.2/include/extensions/XIEproto.h@ 17240

Last change on this file since 17240 was 17240, checked in by vboxsync, 16 years ago

Additions/x11/x11include: blast! Done it again. Reverted r43561.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 19.6 KB
Line 
1/* $Xorg: XIEproto.h,v 1.6 2001/02/09 02:03:23 xorgcvs Exp $ */
2/******************************************************************************
3Copyright 1993, 1994, 1998 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included
12in all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
18OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20OTHER DEALINGS IN THE SOFTWARE.
21
22Except as contained in this notice, the name of The Open Group shall
23not be used in advertising or otherwise to promote the sale, use or
24other dealings in this Software without prior written authorization
25from The Open Group.
26
27
28 NOTICE
29
30This software is being provided by AGE Logic, Inc. under the
31following license. By obtaining, using and/or copying this software,
32you agree that you have read, understood, and will comply with these
33terms and conditions:
34
35 Permission to use, copy, modify, distribute and sell this
36 software and its documentation for any purpose and without
37 fee or royalty and to grant others any or all rights granted
38 herein is hereby granted, provided that you agree to comply
39 with the following copyright notice and statements, including
40 the disclaimer, and that the same appears on all copies and
41 derivative works of the software and documentation you make.
42
43 "Copyright 1993, 1994 by AGE Logic, Inc."
44
45 THIS SOFTWARE IS PROVIDED "AS IS". AGE LOGIC MAKES NO
46 REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. By way of
47 example, but not limitation, AGE LOGIC MAKE NO
48 REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS
49 FOR ANY PARTICULAR PURPOSE OR THAT THE SOFTWARE DOES NOT
50 INFRINGE THIRD-PARTY PROPRIETARY RIGHTS. AGE LOGIC
51 SHALL BEAR NO LIABILITY FOR ANY USE OF THIS SOFTWARE. IN NO
52 EVENT SHALL EITHER PARTY BE LIABLE FOR ANY INDIRECT,
53 INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS
54 OF PROFITS, REVENUE, DATA OR USE, INCURRED BY EITHER PARTY OR
55 ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT OR
56 BASED ON A WARRANTY, EVEN IF AGE LOGIC LICENSEES
57 HEREUNDER HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
58 DAMAGES.
59
60 The name of AGE Logic, Inc. may not be used in
61 advertising or publicity pertaining to this software without
62 specific, written prior permission from AGE Logic.
63
64 Title to this software shall at all times remain with AGE
65 Logic, Inc.
66******************************************************************************/
67
68#ifndef _XIEPROTO_H_
69#define _XIEPROTO_H_
70
71#include <X11/extensions/XIEprotost.h>
72
73#define Drawable CARD32
74#define Colormap CARD32
75#define GContext CARD32
76
77
78typedef struct {
79 CARD8 reqType;
80 CARD8 opcode;
81 CARD16 length B16;
82} xieReq;
83
84typedef struct {
85 CARD8 reqType;
86 CARD8 opcode;
87 CARD16 length B16;
88 CARD16 majorVersion B16;
89 CARD16 minorVersion B16;
90} xieQueryImageExtensionReq;
91
92typedef struct {
93 CARD8 type;
94 CARD8 data;
95 CARD16 sequenceNum B16;
96 CARD32 length B32;
97 CARD16 majorVersion B16;
98 CARD16 minorVersion B16;
99 xieTypServiceClass serviceClass;
100 xieTypAlignment alignment;
101 CARD16 unconstrainedMantissa B16;
102 INT32 unconstrainedMaxExp B32;
103 INT32 unconstrainedMinExp B32;
104 CARD8 pad2[8];
105 /* LISTofCARD32 (constrained-levels) */
106} xieQueryImageExtensionReply;
107
108typedef struct {
109 CARD8 reqType;
110 CARD8 opcode;
111 CARD16 length B16;
112 xieTypTechniqueGroup techniqueGroup;
113 CARD8 pad[3];
114} xieQueryTechniquesReq;
115
116typedef struct {
117 CARD8 type;
118 CARD8 data;
119 CARD16 sequenceNum B16;
120 CARD32 length B32;
121 CARD16 numTechniques B16;
122 CARD8 pad[22];
123 /* LISTofTechniqueRec (numTechniques) */
124} xieQueryTechniquesReply;
125
126typedef struct {
127 CARD8 reqType;
128 CARD8 opcode;
129 CARD16 length B16;
130 xieTypColorList colorList B32;
131} xieCreateColorListReq;
132
133typedef struct {
134 CARD8 reqType;
135 CARD8 opcode;
136 CARD16 length B16;
137 xieTypColorList colorList B32;
138} xieDestroyColorListReq;
139
140typedef struct {
141 CARD8 reqType;
142 CARD8 opcode;
143 CARD16 length B16;
144 xieTypColorList colorList B32;
145} xiePurgeColorListReq;
146
147typedef struct {
148 CARD8 reqType;
149 CARD8 opcode;
150 CARD16 length B16;
151 xieTypColorList colorList B32;
152} xieQueryColorListReq;
153
154typedef struct {
155 CARD8 type;
156 CARD8 data;
157 CARD16 sequenceNum B16;
158 CARD32 length B32;
159 Colormap colormap B32;
160 CARD8 pad[20];
161 /* LISTofCARD32 (length) */
162} xieQueryColorListReply;
163
164typedef struct {
165 CARD8 reqType;
166 CARD8 opcode;
167 CARD16 length B16;
168 xieTypLUT lut B32;
169} xieCreateLUTReq;
170
171typedef struct {
172 CARD8 reqType;
173 CARD8 opcode;
174 CARD16 length B16;
175 xieTypLUT lut B32;
176} xieDestroyLUTReq;
177
178typedef struct {
179 CARD8 reqType;
180 CARD8 opcode;
181 CARD16 length B16;
182 xieTypPhotomap photomap B32;
183} xieCreatePhotomapReq;
184
185typedef struct {
186 CARD8 reqType;
187 CARD8 opcode;
188 CARD16 length B16;
189 xieTypPhotomap photomap B32;
190} xieDestroyPhotomapReq;
191
192typedef struct {
193 CARD8 reqType;
194 CARD8 opcode;
195 CARD16 length B16;
196 xieTypPhotomap photomap B32;
197} xieQueryPhotomapReq;
198
199typedef struct {
200 CARD8 type;
201 BOOL populated;
202 CARD16 sequenceNum B16;
203 CARD32 length B32;
204 xieTypDataClass dataClass;
205 xieTypDataType dataType;
206 xieTypDecodeTechnique decodeTechnique B16;
207 CARD32 width0 B32;
208 CARD32 width1 B32;
209 CARD32 width2 B32;
210 CARD32 height0 B32;
211 CARD32 height1 B32;
212 CARD32 height2 B32;
213 CARD32 levels0 B32;
214 CARD32 levels1 B32;
215 CARD32 levels2 B32;
216} xieQueryPhotomapReply;
217
218typedef struct {
219 CARD8 reqType;
220 CARD8 opcode;
221 CARD16 length B16;
222 xieTypROI roi B32;
223} xieCreateROIReq;
224
225typedef struct {
226 CARD8 reqType;
227 CARD8 opcode;
228 CARD16 length B16;
229 xieTypROI roi B32;
230} xieDestroyROIReq;
231
232typedef struct {
233 CARD8 reqType;
234 CARD8 opcode;
235 CARD16 length B16;
236 xieTypPhotospace nameSpace B32;
237} xieCreatePhotospaceReq;
238
239typedef struct {
240 CARD8 reqType;
241 CARD8 opcode;
242 CARD16 length B16;
243 xieTypPhotospace nameSpace B32;
244} xieDestroyPhotospaceReq;
245
246typedef struct {
247 CARD8 reqType;
248 CARD8 opcode;
249 CARD16 length B16;
250 xieTypPhotospace nameSpace B32;
251 CARD32 floID B32;
252 CARD16 numElements B16;
253 BOOL notify;
254 CARD8 pad;
255 /* LISTofPhotoElement (numElements) */
256} xieExecuteImmediateReq;
257
258typedef struct {
259 CARD8 reqType;
260 CARD8 opcode;
261 CARD16 length B16;
262 xieTypPhotoflo floID B32;
263 CARD16 numElements B16;
264 CARD16 pad B16;
265 /* LISTofPhotoElement (numElements) */
266} xieCreatePhotofloReq;
267
268typedef struct {
269 CARD8 reqType;
270 CARD8 opcode;
271 CARD16 length B16;
272 xieTypPhotoflo floID B32;
273} xieDestroyPhotofloReq;
274
275typedef struct {
276 CARD8 reqType;
277 CARD8 opcode;
278 CARD16 length B16;
279 xieTypPhotoflo floID B32;
280 BOOL notify;
281 CARD8 pad[3];
282} xieExecutePhotofloReq;
283
284typedef struct {
285 CARD8 reqType;
286 CARD8 opcode;
287 CARD16 length B16;
288 xieTypPhotoflo floID B32;
289 xieTypPhototag start B16;
290 CARD16 numElements B16;
291 /* LISTofPhotoElement (numElements) */
292} xieModifyPhotofloReq;
293
294typedef struct {
295 CARD8 reqType;
296 CARD8 opcode;
297 CARD16 length B16;
298 xieTypPhotoflo floID B32;
299 CARD16 numElements B16;
300 CARD16 pad B16;
301 /* LISTofPhotoElement (numElements) */
302} xieRedefinePhotofloReq;
303
304typedef struct {
305 CARD8 reqType;
306 CARD8 opcode;
307 CARD16 length B16;
308 CARD32 nameSpace B32;
309 CARD32 floID B32;
310 xieTypPhototag element B16;
311 BOOL final;
312 CARD8 bandNumber;
313 CARD32 byteCount B32;
314 /* LISTofCARD8 (byteCount) */
315 /* pad (byteCount) */
316} xiePutClientDataReq;
317
318typedef struct {
319 CARD8 reqType;
320 CARD8 opcode;
321 CARD16 length B16;
322 CARD32 nameSpace B32;
323 CARD32 floID B32;
324 CARD32 maxBytes B32;
325 xieTypPhototag element B16;
326 BOOL terminate;
327 CARD8 bandNumber;
328} xieGetClientDataReq;
329
330typedef struct {
331 CARD8 type;
332 CARD8 newState;
333 CARD16 sequenceNum B16;
334 CARD32 length B32;
335 CARD32 byteCount B32;
336 CARD8 pad[20];
337 /* LISTofCARD8 (byteCount) */
338 /* pad (byteCount) */
339} xieGetClientDataReply;
340
341typedef struct {
342 CARD8 reqType;
343 CARD8 opcode;
344 CARD16 length B16;
345 CARD32 nameSpace B32;
346 CARD32 floID B32;
347} xieQueryPhotofloReq;
348
349typedef struct {
350 CARD8 type;
351 CARD8 state;
352 CARD16 sequenceNum B16;
353 CARD32 length B32;
354 CARD16 expectedCount B16;
355 CARD16 availableCount B16;
356 CARD8 pad[20];
357 /* LISTofPhototag (expectedCount) */
358 /* pad (expectedCount * 2) */
359 /* LISTofPhototag (availableCount) */
360 /* pad (availableCount * 2) */
361} xieQueryPhotofloReply;
362
363typedef struct {
364 CARD8 reqType;
365 CARD8 opcode;
366 CARD16 length B16;
367 CARD32 nameSpace B32;
368 CARD32 floID B32;
369} xieAwaitReq;
370
371typedef struct {
372 CARD8 reqType;
373 CARD8 opcode;
374 CARD16 length B16;
375 CARD32 nameSpace B32;
376 CARD32 floID B32;
377} xieAbortReq;
378
379
380/*
381 * Request codes
382 */
383
384#define X_ieQueryImageExtension 1
385#define X_ieQueryTechniques 2
386#define X_ieCreateColorList 3
387#define X_ieDestroyColorList 4
388#define X_iePurgeColorList 5
389#define X_ieQueryColorList 6
390#define X_ieCreateLUT 7
391#define X_ieDestroyLUT 8
392#define X_ieCreatePhotomap 9
393#define X_ieDestroyPhotomap 10
394#define X_ieQueryPhotomap 11
395#define X_ieCreateROI 12
396#define X_ieDestroyROI 13
397#define X_ieCreatePhotospace 14
398#define X_ieDestroyPhotospace 15
399#define X_ieExecuteImmediate 16
400#define X_ieCreatePhotoflo 17
401#define X_ieDestroyPhotoflo 18
402#define X_ieExecutePhotoflo 19
403#define X_ieModifyPhotoflo 20
404#define X_ieRedefinePhotoflo 21
405#define X_iePutClientData 22
406#define X_ieGetClientData 23
407#define X_ieQueryPhotoflo 24
408#define X_ieAwait 25
409#define X_ieAbort 26
410
411#define xieNumProtoReq 26
412
413
414/*
415 * Events
416 */
417typedef struct {
418 CARD8 event;
419 xieTypPhotofloOutcome outcome;
420 CARD16 sequenceNum B16;
421 CARD32 time B32;
422 CARD32 instanceNameSpace B32;
423 CARD32 instanceFloID B32;
424 CARD8 pad[16];
425} xiePhotofloDoneEvn;
426
427typedef struct {
428 CARD8 event;
429 CARD8 pad1;
430 CARD16 sequenceNum B16;
431 CARD32 time B32;
432 CARD32 instanceNameSpace B32;
433 CARD32 instanceFloID B32;
434 xieTypPhototag src B16;
435 CARD16 type B16;
436 CARD32 pad2 B32;
437 CARD32 pad3 B16;
438 CARD32 pad4 B32;
439} xieFloEvn;
440
441typedef struct {
442 CARD8 event;
443 CARD8 pad1;
444 CARD16 sequenceNum B16;
445 CARD32 time B32;
446 CARD32 instanceNameSpace B32;
447 CARD32 instanceFloID B32;
448 xieTypPhototag src B16;
449 CARD16 type B16;
450 xieTypColorList colorList B32;
451 xieTypColorAllocTechnique colorAllocTechnique B16;
452 CARD16 pad2 B16;
453 CARD32 data B32;
454} xieColorAllocEvn;
455
456typedef struct {
457 CARD8 event;
458 CARD8 bandNumber;
459 CARD16 sequenceNum B16;
460 CARD32 time B32;
461 CARD32 instanceNameSpace B32;
462 CARD32 instanceFloID B32;
463 xieTypPhototag src B16;
464 CARD16 type B16;
465 xieTypDecodeTechnique decodeTechnique B16;
466 BOOL aborted;
467 CARD8 pad;
468 CARD32 width B32;
469 CARD32 height B32;
470} xieDecodeNotifyEvn;
471
472typedef struct {
473 CARD8 event;
474 CARD8 bandNumber;
475 CARD16 sequenceNum B16;
476 CARD32 time B32;
477 CARD32 instanceNameSpace B32;
478 CARD32 instanceFloID B32;
479 xieTypPhototag src B16;
480 CARD16 type B16;
481 CARD32 data0 B32;
482 CARD32 data1 B32;
483 CARD32 data2 B32;
484} xieExportAvailableEvn;
485
486typedef struct {
487 CARD8 event;
488 CARD8 pad;
489 CARD16 sequenceNum B16;
490 CARD32 time B32;
491 CARD32 instanceNameSpace B32;
492 CARD32 instanceFloID B32;
493 xieTypPhototag src B16;
494 CARD16 type B16;
495 Window window B32;
496 INT16 x B16;
497 INT16 y B16;
498 CARD16 width B16;
499 CARD16 height B16;
500} xieImportObscuredEvn;
501
502
503/*
504 * Errors
505 */
506typedef struct {
507 CARD8 error;
508 CARD8 code;
509 CARD16 sequenceNum B16;
510 CARD32 resourceID B32;
511 CARD16 minorOpcode B16;
512 CARD8 majorOpcode;
513 CARD8 pad[21];
514} xieResourceErr;
515
516typedef struct {
517 CARD8 error;
518 CARD8 code;
519 CARD16 sequenceNum B16;
520 CARD32 floID B32;
521 CARD16 minorOpcode B16;
522 CARD8 majorOpcode;
523 CARD8 floErrorCode;
524 CARD32 nameSpace B32;
525 xieTypPhototag phototag B16;
526 CARD16 type B16;
527 CARD32 resourceID B32;
528 CARD8 pad[8];
529} xieFloResourceErr;
530
531typedef struct {
532 CARD8 error;
533 CARD8 code;
534 CARD16 sequenceNum B16;
535 CARD32 floID B32;
536 CARD16 minorOpcode B16;
537 CARD8 majorOpcode;
538 CARD8 floErrorCode;
539 CARD32 nameSpace B32;
540 xieTypPhototag phototag B16;
541 CARD16 type B16;
542 CARD8 pad[12];
543} xieFloErr, xieFloAccessErr, xieFloAllocErr, xieFloElementErr,
544 xieFloLengthErr, xieFloMatchErr, xieFloSourceErr, xieFloImplementationErr;
545
546typedef struct {
547 CARD8 error;
548 CARD8 code;
549 CARD16 sequenceNum B16;
550 CARD32 floID B32;
551 CARD16 minorOpcode B16;
552 CARD8 majorOpcode;
553 CARD8 floErrorCode;
554 CARD32 nameSpace B32;
555 xieTypPhototag phototag B16;
556 CARD16 type B16;
557 xieTypPhototag domainSrc B16;
558 CARD8 pad[10];
559} xieFloDomainErr;
560
561typedef struct {
562 CARD8 error;
563 CARD8 code;
564 CARD16 sequenceNum B16;
565 CARD32 floID B32;
566 CARD16 minorOpcode B16;
567 CARD8 majorOpcode;
568 CARD8 floErrorCode;
569 CARD32 nameSpace B32;
570 CARD8 pad[16];
571} xieFloIDErr;
572
573typedef struct {
574 CARD8 error;
575 CARD8 code;
576 CARD16 sequenceNum B16;
577 CARD32 floID B32;
578 CARD16 minorOpcode B16;
579 CARD8 majorOpcode;
580 CARD8 floErrorCode;
581 CARD32 nameSpace B32;
582 xieTypPhototag phototag B16;
583 CARD16 type B16;
584#if defined(__cplusplus) || defined(c_plusplus)
585 CARD8 c_operator;
586#else
587 CARD8 operator;
588#endif
589 CARD8 pad[11];
590} xieFloOperatorErr;
591
592typedef struct {
593 CARD8 error;
594 CARD8 code;
595 CARD16 sequenceNum B16;
596 CARD32 floID B32;
597 CARD16 minorOpcode B16;
598 CARD8 majorOpcode;
599 CARD8 floErrorCode;
600 CARD32 nameSpace B32;
601 xieTypPhototag phototag B16;
602 CARD16 type B16;
603 CARD16 techniqueNumber B16;
604 CARD16 lenTechParams B16;
605 CARD8 techniqueGroup;
606 CARD8 pad[7];
607} xieFloTechniqueErr;
608
609typedef struct {
610 CARD8 error;
611 CARD8 code;
612 CARD16 sequenceNum B16;
613 CARD32 floID B32;
614 CARD16 minorOpcode B16;
615 CARD8 majorOpcode;
616 CARD8 floErrorCode;
617 CARD32 nameSpace B32;
618 xieTypPhototag phototag B16;
619 CARD16 type B16;
620 CARD32 badValue B32;
621 CARD8 pad[8];
622} xieFloValueErr;
623
624
625
626/*
627 * SIZEOF values
628 */
629#define sz_xieReq 4
630#define sz_xieQueryImageExtensionReq 8
631#define sz_xieQueryImageExtensionReply 32
632#define sz_xieQueryTechniquesReq 8
633#define sz_xieQueryTechniquesReply 32
634#define sz_xieCreateColorListReq 8
635#define sz_xieDestroyColorListReq 8
636#define sz_xiePurgeColorListReq 8
637#define sz_xieQueryColorListReq 8
638#define sz_xieQueryColorListReply 32
639#define sz_xieCreateLUTReq 8
640#define sz_xieDestroyLUTReq 8
641#define sz_xieCreatePhotomapReq 8
642#define sz_xieDestroyPhotomapReq 8
643#define sz_xieQueryPhotomapReq 8
644#define sz_xieQueryPhotomapReply 48
645#define sz_xieCreateROIReq 8
646#define sz_xieDestroyROIReq 8
647#define sz_xieCreatePhotospaceReq 8
648#define sz_xieDestroyPhotospaceReq 8
649#define sz_xieExecuteImmediateReq 16
650#define sz_xieCreatePhotofloReq 12
651#define sz_xieDestroyPhotofloReq 8
652#define sz_xieExecutePhotofloReq 12
653#define sz_xieModifyPhotofloReq 12
654#define sz_xieRedefinePhotofloReq 12
655#define sz_xiePutClientDataReq 20
656#define sz_xieGetClientDataReq 20
657#define sz_xieGetClientDataReply 32
658#define sz_xieQueryPhotofloReq 12
659#define sz_xieQueryPhotofloReply 32
660#define sz_xieAwaitReq 12
661#define sz_xieAbortReq 12
662
663#define sz_xiePhotofloDoneEvn 32
664#define sz_xieColorAllocEvn 32
665#define sz_xieDecodeNotifyEvn 32
666#define sz_xieExportAvailableEvn 32
667#define sz_xieImportObscuredEvn 32
668#define sz_xieFloEvn 32
669
670#define sz_xieResourceErr 32
671#define sz_xieFloAccessErr 32
672#define sz_xieFloAllocErr 32
673#define sz_xieFloElementErr 32
674#define sz_xieFloIDErr 32
675#define sz_xieFloLengthErr 32
676#define sz_xieFloMatchErr 32
677#define sz_xieFloSourceErr 32
678#define sz_xieFloDomainErr 32
679#define sz_xieFloOperatorErr 32
680#define sz_xieFloTechniqueErr 32
681#define sz_xieFloValueErr 32
682#define sz_xieFloImplementationErr 32
683#define sz_xieFloErr 32
684
685#undef Drawable
686#undef Colormap
687#undef GContext
688
689#endif /* _XIEPROTO_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette