summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Linhart <chris@demorecorder.com>2017-01-25 10:31:18 +0100
committerChristian Linhart <chris@demorecorder.com>2017-03-11 10:49:27 +0100
commit4aa40fbd5e05833b72327ea37421b09dff246732 (patch)
treed64322ef12b8c29517646e77bc613fb9f366c26e /src
parent89b022fdacfe7b39b2122c6ec1a4097767b1ee29 (diff)
downloadxcb-proto-4aa40fbd5e05833b72327ea37421b09dff246732.tar.gz
add support for eventstruct
eventstruct is a new xml element that allows to use events as part of requests. This is, e.g., needed by the SendExtensionEvent request of the XINPUT extension. Signed-off-by: Christian Linhart <chris@demorecorder.com>
Diffstat (limited to 'src')
-rw-r--r--src/xcb.xsd17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/xcb.xsd b/src/xcb.xsd
index f0c5f44..dc3d7cc 100644
--- a/src/xcb.xsd
+++ b/src/xcb.xsd
@@ -240,6 +240,22 @@ authorization from the authors.
<xsd:attribute name="ref" type="xsd:string" use="required" />
</xsd:complexType>
+ <!-- Type for a structure that is an event
+ which can be of an event type from a set of event types -->
+ <xsd:complexType name="eventstruct">
+ <xsd:sequence>
+ <xsd:element name="allowed">
+ <xsd:complexType>
+ <xsd:attribute name="extension" type="xsd:string" use="required" />
+ <xsd:attribute name="xge" type="xsd:boolean" use="required" />
+ <xsd:attribute name="opcode-min" type="xsd:integer" use="required" />
+ <xsd:attribute name="opcode-max" type="xsd:integer" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+
<!-- Type for bit values -->
<xsd:simpleType name="bitType">
<xsd:restriction base="xsd:integer">
@@ -354,6 +370,7 @@ authorization from the authors.
<xsd:element name="errorcopy" type="packet-struct-copy" />
<xsd:element name="struct" type="struct" />
<xsd:element name="union" type="struct" />
+ <xsd:element name="eventstruct" type="eventstruct" />
<xsd:element name="xidtype">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required" />