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
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.
25 *-----------------------------------------------------------------------
26 * SUN_DGA private extension minor op codes
27 *-----------------------------------------------------------------------
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 */
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
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
76 #define X_DgaXineramaInfo 25
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 */
95 CARD32 id B32
; /* a Window, Drawable, Font, GContext, Pixmap, etc. */
98 } xDgaGrabABuffersReq
;
99 #define sz_xDgaGrabABuffersReq (sizeof(xDgaGrabABuffersReq))
102 ** OWGX request structure
109 CARD32 id B32
; /* a Window, Drawable, Font, GContext, Pixmap, etc. */
110 CARD32 number_objects B32
;
112 #define sz_xOWGXReq 12
116 ** OWGX shared retained path reply structure
120 BYTE type
; /* X_Reply */
122 CARD16 sequenceNumber B16
;
125 } xOWGXRtndPathReply
;
126 #define sz_xOWGXRtndPathReply 208
130 * DgaQueryVersion request and reply structures
134 CARD8 reqType
; /* always SUN_DGA major opcode */
135 CARD8 dgaReqType
; /* always X_DgaQueryVersion */
137 } xDgaQueryVersionReq
;
138 #define sz_xDgaQueryVersionReq 4
141 BYTE type
; /* X_Reply */
143 CARD16 sequenceNumber B16
;
145 CARD16 majorVersion B16
;
146 CARD16 minorVersion B16
;
152 } xDgaQueryVersionReply
;
153 #define sz_xDgaQueryVersionReply 32
157 #endif /* _SUN_DGA_H */