mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-07 07:18:03 +02:00
Merge branch 'DemiMarie-master-patch-62720' into 'master'
Add extended shared memory attach structure See merge request xorg/proto/xorgproto!43
This commit is contained in:
commit
720118006c
1 changed files with 16 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#define X_ShmCreatePixmap 5
|
||||
#define X_ShmAttachFd 6
|
||||
#define X_ShmCreateSegment 7
|
||||
#define X_ShmAttachFdExt 8
|
||||
|
||||
typedef struct _ShmQueryVersion {
|
||||
CARD8 reqType; /* always ShmReqCode */
|
||||
|
|
@ -220,6 +221,21 @@ typedef struct {
|
|||
/* File descriptor is passed with this reply */
|
||||
#define sz_xShmCreateSegmentReply 32
|
||||
|
||||
/* Version 1.3 additions */
|
||||
typedef struct _ShmAttachFdExt {
|
||||
CARD8 reqType; /* always ShmReqCode */
|
||||
CARD8 shmReqType; /* always X_ShmAttachFdExt */
|
||||
CARD16 length;
|
||||
ShmSeg shmseg;
|
||||
BOOL readOnly;
|
||||
BYTE pad0;
|
||||
CARD16 pad1;
|
||||
CARD32 size; /* size of the buffer */
|
||||
CARD64 offset; /* offset to pass to mmap() */
|
||||
} xShmAttachFdExtReq;
|
||||
/* File descriptor is passed with this request */
|
||||
#define sz_xShmAttachFdExtReq 32
|
||||
|
||||
#undef ShmSeg
|
||||
#undef Drawable
|
||||
#undef VisualID
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue