1 /************************************************************
3 Copyright 1989, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the 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 THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in this Software without prior written authorization from The Open Group.
25 ********************************************************/
27 /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
32 #include <X11/extensions/shm.h>
35 #define Drawable CARD32
36 #define VisualID CARD32
37 #define GContext CARD32
40 #define X_ShmQueryVersion 0
43 #define X_ShmPutImage 3
44 #define X_ShmGetImage 4
45 #define X_ShmCreatePixmap 5
47 typedef struct _ShmQueryVersion {
48 CARD8 reqType; /* always ShmReqCode */
49 CARD8 shmReqType; /* always X_ShmQueryVersion */
51 } xShmQueryVersionReq;
52 #define sz_xShmQueryVersionReq 4
55 BYTE type; /* X_Reply */
57 CARD16 sequenceNumber B16;
59 CARD16 majorVersion B16; /* major version of SHM protocol */
60 CARD16 minorVersion B16; /* minor version of SHM protocol */
69 } xShmQueryVersionReply;
70 #define sz_xShmQueryVersionReply 32
72 typedef struct _ShmAttach {
73 CARD8 reqType; /* always ShmReqCode */
74 CARD8 shmReqType; /* always X_ShmAttach */
82 #define sz_xShmAttachReq 16
84 typedef struct _ShmDetach {
85 CARD8 reqType; /* always ShmReqCode */
86 CARD8 shmReqType; /* always X_ShmDetach */
90 #define sz_xShmDetachReq 8
92 typedef struct _ShmPutImage {
93 CARD8 reqType; /* always ShmReqCode */
94 CARD8 shmReqType; /* always X_ShmPutImage */
96 Drawable drawable B32;
98 CARD16 totalWidth B16;
99 CARD16 totalHeight B16;
103 CARD16 srcHeight B16;
113 #define sz_xShmPutImageReq 40
115 typedef struct _ShmGetImage {
116 CARD8 reqType; /* always ShmReqCode */
117 CARD8 shmReqType; /* always X_ShmGetImage */
119 Drawable drawable B32;
124 CARD32 planeMask B32;
132 #define sz_xShmGetImageReq 32
134 typedef struct _ShmGetImageReply {
135 BYTE type; /* X_Reply */
137 CARD16 sequenceNumber B16;
146 #define sz_xShmGetImageReply 32
148 typedef struct _ShmCreatePixmap {
149 CARD8 reqType; /* always ShmReqCode */
150 CARD8 shmReqType; /* always X_ShmCreatePixmap */
153 Drawable drawable B32;
162 } xShmCreatePixmapReq;
163 #define sz_xShmCreatePixmapReq 28
165 typedef struct _ShmCompletion {
166 BYTE type; /* always eventBase + ShmCompletion */
168 CARD16 sequenceNumber B16;
169 Drawable drawable B32;
170 CARD16 minorEvent B16;
178 } xShmCompletionEvent;
179 #define sz_xShmCompletionEvent 32
187 #endif /* _SHMPROTO_H_ */