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/Xfuncproto.h>
33 #include <X11/extensions/shm.h>
36 typedef unsigned long ShmSeg;
39 int type; /* of event */
40 unsigned long serial; /* # of last request processed by server */
41 Bool send_event; /* true if this came frome a SendEvent request */
42 Display *display; /* Display the event was read from */
43 Drawable drawable; /* drawable of request */
44 int major_code; /* ShmReqCode */
45 int minor_code; /* X_ShmPutImage */
46 ShmSeg shmseg; /* the ShmSeg used in the request */
47 unsigned long offset; /* the offset into ShmSeg used in the request */
48 } XShmCompletionEvent;
51 ShmSeg shmseg; /* resource id */
52 int shmid; /* kernel id */
53 char *shmaddr; /* address in client */
54 Bool readOnly; /* how the server should attach it */
59 Bool XShmQueryExtension(
67 Bool XShmQueryVersion(
69 int* /* majorVersion */,
70 int* /* minorVersion */,
71 Bool* /* sharedPixmaps */
80 XShmSegmentInfo* /* shminfo */
85 XShmSegmentInfo* /* shminfo */
97 unsigned int /* src_width */,
98 unsigned int /* src_height */,
108 unsigned long /* plane_mask */
111 XImage *XShmCreateImage(
113 Visual* /* visual */,
114 unsigned int /* depth */,
117 XShmSegmentInfo* /* shminfo */,
118 unsigned int /* width */,
119 unsigned int /* height */
122 Pixmap XShmCreatePixmap(
126 XShmSegmentInfo* /* shminfo */,
127 unsigned int /* width */,
128 unsigned int /* height */,
129 unsigned int /* depth */
133 #endif /* _XSHM_SERVER_ */