vim: update to 9.1.0969
[oi-userland.git] / components / x11 / sun-ext-protos / files / include / dgast.h
blobc051d223ace61b0ec036650acb9502dedb9ae399
1 /* Copyright (c) 1994, 1999, Oracle and/or its affiliates. All rights reserved.
3 * Permission is hereby granted, free of charge, to any person obtaining a
4 * copy of this software and associated documentation files (the "Software"),
5 * to deal in the Software without restriction, including without limitation
6 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 * and/or sell copies of the Software, and to permit persons to whom the
8 * Software is furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice (including the next
11 * paragraph) shall be included in all copies or substantial portions of the
12 * Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 */
25 *-----------------------------------------------------------------------
26 * SUN_DGA private extension minor op codes
27 *-----------------------------------------------------------------------
30 #ifndef _SUN_DGA_H
31 #define _SUN_DGA_H
33 #define SUN_DGA_MAJOR_VERSION 3 /* current version numbers */
34 #define SUN_DGA_MINOR_VERSION 2
36 /* protocol requests in Protocol Version 1 - OpenWindows 2.0 FCS */
37 #define X_WxGrab 1
38 #define X_WxUnGrab 2
39 #define X_WxGrabColormap 3
40 #define X_WxUnGrabColormap 4
42 /* additional protocol requests in Protocol Version 2 - OpenWindows 3.0 Beta */
43 #define X_WxGrabWids 5
44 #define X_WxGrabBuffers 6
45 #define X_WxUnGrabBuffers 7
46 #define X_WxGrabFCS 8
47 #define X_WxGrabZbuf 9
48 #define X_WxGrabStereo 10
49 #define X_WxGrab_New 11
50 #define X_WxUnGrab_New 12
52 /* additional protocol requests in Protocol Version 3 - OpenWindows 3.0 FCS */
53 #define X_WxGrabColormapNew 13
54 #define X_WxUnGrabColormapNew 14
55 #define X_WxGrabRetained 15
56 #define X_WxUnGrabRetained 16
57 #define X_WxGetRetainedPath 17
58 #define X_DgaQueryVersion 18
60 /* additional protocol requests in Protocol Version 3 - OpenWindows 3.0 FCS */
62 #define X_WxGrabPixmap 19
63 #define X_WxUnGrabPixmap 20
65 /* additional protocol requests in Protocol Version 3.2 */
67 #define X_WxGrabDrawable 21
68 #define X_WxUnGrabDrawable 22
70 /* additional protocol requests in Protocol Version 3.6 */
72 #define X_WxGrabABuffers 23
73 #define X_WxUnGrabABuffers 24
75 #ifdef PANORAMIX
76 #define X_DgaXineramaInfo 25
77 #endif
80 ** Types of grabbable drawables
83 #define DGA_PROTO_WINDOW 0
84 #define DGA_PROTO_PIXMAP 1
85 #define DGA_PROTO_OVERLAY 2
87 #define DGA_TOKEN_NULL 0
89 /* Ancillary Buffers request structure */
91 typedef struct {
92 CARD8 reqType;
93 BYTE pad;
94 CARD16 length B16;
95 CARD32 id B32; /* a Window, Drawable, Font, GContext, Pixmap, etc. */
96 CARD32 type;
97 CARD32 buffer_site;
98 } xDgaGrabABuffersReq;
99 #define sz_xDgaGrabABuffersReq (sizeof(xDgaGrabABuffersReq))
102 ** OWGX request structure
105 typedef struct {
106 CARD8 reqType;
107 BYTE pad;
108 CARD16 length B16;
109 CARD32 id B32; /* a Window, Drawable, Font, GContext, Pixmap, etc. */
110 CARD32 number_objects B32;
111 } xOWGXReq;
112 #define sz_xOWGXReq 12
116 ** OWGX shared retained path reply structure
119 typedef struct {
120 BYTE type; /* X_Reply */
121 CARD8 pad;
122 CARD16 sequenceNumber B16;
123 CARD32 length B32;
124 CARD8 path[200];
125 } xOWGXRtndPathReply;
126 #define sz_xOWGXRtndPathReply 208
130 * DgaQueryVersion request and reply structures
133 typedef struct {
134 CARD8 reqType; /* always SUN_DGA major opcode */
135 CARD8 dgaReqType; /* always X_DgaQueryVersion */
136 CARD16 length B16;
137 } xDgaQueryVersionReq;
138 #define sz_xDgaQueryVersionReq 4
140 typedef struct {
141 BYTE type; /* X_Reply */
142 CARD8 unused;
143 CARD16 sequenceNumber B16;
144 CARD32 length B32;
145 CARD16 majorVersion B16;
146 CARD16 minorVersion B16;
147 CARD32 pad0 B32;
148 CARD32 pad1 B32;
149 CARD32 pad2 B32;
150 CARD32 pad3 B32;
151 CARD32 pad4 B32;
152 } xDgaQueryVersionReply;
153 #define sz_xDgaQueryVersionReply 32
157 #endif /* _SUN_DGA_H */