diff options
author | Keith Packard <keithp@keithp.com> | 2013-01-18 01:28:10 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-11-07 05:14:12 -0800 |
commit | 2b6b7bb7baa57a5e89c8c7e01496aa3e67da5973 (patch) | |
tree | 4553ee36fc3a746415c75ade9f3091fd87d48899 | |
parent | c57d265a90f4ed82acf72e0161b8d7bf35830884 (diff) |
Add MIT-SHM AttachFd and CreateSegment requests
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Harris <pharris@opentext.com>
-rw-r--r-- | src/shm.xml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/shm.xml b/src/shm.xml index adda509..71fce14 100644 --- a/src/shm.xml +++ b/src/shm.xml @@ -26,7 +26,7 @@ sale, use or other dealings in this Software without prior written authorization from the authors. --> <xcb header="shm" extension-xname="MIT-SHM" extension-name="Shm" - major-version="1" minor-version="1"> + major-version="1" minor-version="2"> <import>xproto</import> <xidtype name="SEG" /> @@ -113,4 +113,23 @@ authorization from the authors. <field type="SEG" name="shmseg" /> <field type="CARD32" name="offset" /> </request> + + <request name="AttachFd" opcode="6"> + <field type="SEG" name="shmseg" /> + <fd name="shm_fd" /> + <field type="BOOL" name="read_only" /> + <pad bytes="3" /> + </request> + + <request name="CreateSegment" opcode="7"> + <field type="SEG" name="shmseg" /> + <field type="CARD32" name="size" /> + <field type="BOOL" name="read_only" /> + <pad bytes="3" /> + <reply> + <field type="CARD8" name="nfd" /> + <fd name="shm_fd" /> + <pad bytes="24" /> + </reply> + </request> </xcb> |