dbe protocoll definition

Submitted by Lars Segerlund on Sept. 2, 2016, 7:21 a.m.

Details

Message ID CAF-VNaqFE0hnBz6MZLm6gbejVvCSU4ohKOq6itEW-hCAHHOoKQ@mail.gmail.com
State New
Series "dbe protocoll definition"
Headers show

Commit Message

Lars Segerlund Sept. 2, 2016, 7:21 a.m.
Hi I have an inital xml file which only has minor changes from the file I
got from Thien-Thi ...

Does this look about right ?

I am sending one for libxcb later.

Patch hide | download patch | download mbox

From 8cadbd30aa57842b9fcb9fd0d6fcf5c42c7b5fcd Mon Sep 17 00:00:00 2001
From: Lars Segerlund <lars.segerlund@gmail.com>
Date: Fri, 2 Sep 2016 09:16:08 +0200
Subject: [PATCH] Initial dbe protocoll definition

---
 src/Makefile.am |   1 +
 src/dbe.xml     | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+)
 create mode 100644 src/dbe.xml

diff --git a/src/Makefile.am b/src/Makefile.am
index d81d818..aa10860 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,6 +4,7 @@  xcbinclude_HEADERS = \
 	bigreq.xml \
 	composite.xml \
 	damage.xml \
+	dbe.xml \
 	dpms.xml \
 	dri2.xml \
 	dri3.xml \
diff --git a/src/dbe.xml b/src/dbe.xml
new file mode 100644
index 0000000..4ac25d2
--- /dev/null
+++ b/src/dbe.xml
@@ -0,0 +1,108 @@ 
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Minor changes to BUFFER_ATTRIBUTES
+Lars Segerlund, 2016
+
+Copyright (C) 2008 Thien-Thi Nguyen
+All Rights Reserved.  See the file COPYING in this directory
+for licensing information.
+-->
+<xcb header="dbe"
+     extension-xname="DOUBLE-BUFFER" extension-name="DBE"
+     major-version="1" minor-version="0">
+  <import>xproto</import>
+
+  <!-- types -->
+
+  <xidtype name="BACKBUFFER" />
+
+  <struct name="BUFFER_ATTRIBUTES" >
+    <type>WINDOW</type>
+  </struct>
+
+  <enum name="SWAPACTION">
+    <item name="Undefined" />
+    <item name="Background" />
+    <item name="Untouched" />
+    <item name="Copied" />
+  </enum>
+
+  <struct name="SWAPINFO">
+    <field type="WINDOW" name="window" />
+    <field type="SWAPACTION" name="action" />
+    <pad bytes="3" />
+  </struct>
+
+  <struct name="VISINFO">
+    <field type="VISUALID" name="visual" />
+    <field type="CARD8" name="depth" />
+    <field type="CARD8" name="perflevel" />
+    <pad bytes="2" />
+  </struct>
+
+  <!-- errors -->
+
+  <error name="Buffer" number="0">
+    <field type="CARD32" name="buffer" />
+    <field type="CARD16" name="minor_opcode" />
+    <field type="CARD8" name="major_opcode" />
+  </error>
+
+  <!-- requests -->
+
+  <request name="GetVersion" opcode="0">
+    <field type="CARD8" name="client_major" />
+    <field type="CARD8" name="client_minor" />
+    <reply>
+      <pad bytes="1" />
+      <field type="CARD8" name="server_major" />
+      <field type="CARD8" name="server_minor" />
+    </reply>
+  </request>
+
+  <request name="AllocateBackBufferName" opcode="1">
+    <field type="WINDOW" name="window" />
+    <field type="BACKBUFFER" name="bufname" />
+    <field type="SWAPACTION" name="action" />
+  </request>
+
+  <request name="DeallocateBackBuffername" opcode="2">
+    <field type="BACKBUFFER" name="bufname" />
+  </request>
+
+  <request name="SwapBuffers" opcode="3">
+    <field type="CARD32" name="n" />
+    <list type="SWAPINFO" name="swinfos">
+      <fieldref>n</fieldref>
+    </list>
+  </request>
+
+  <request name="BeginIdiom" opcode="4">
+  </request>
+
+  <request name="EndIdiom" opcode="5">
+  </request>
+
+  <request name="GetVisualInfo" opcode="6">
+    <field type="CARD32" name="n" />
+    <list type="DRAWABLE" name="drawables">
+      <fieldref>n</fieldref>
+    </list>
+    <reply>
+      <pad bytes="1" />
+      <field type="CARD32" name="m" />
+      <pad bytes="20" />
+      <list type="VISINFO" name="visinfos">
+        <fieldref>m</fieldref>
+      </list>
+    </reply>
+  </request>
+
+  <request name="GetBackBufferAttributes" opcode="7">
+    <field type="BACKBUFFER" name="bufname" />
+    <reply>
+      <pad bytes="1" />
+      <field type="BUFFER_ATTRIBUTES" name="attributes" />
+    </reply>
+  </request>
+</xcb>
-- 
2.9.3