From 97fbba25baf241cbcda882739db423b1d36e440a Mon Sep 17 00:00:00 2001 From: Christian Linhart Date: Wed, 25 Jan 2017 10:39:38 +0100 Subject: [PATCH] SendExtensionEvent uses eventstruct Use the eventstruct element to define the SendExtensionEvent request instead of using a byte-array. This has the advantage that the structure of the data to be sent is now defined in the xml definition. This can be used by generators to make sending events safer. Such as avoiding type-casts in C. It can also be useful for protocol analyzers and tools like that because the structure of the sent events is now defined in the xml-definition. Tested-by: Christian Linhart Signed-off-by: Christian Linhart --- src/xinput.xml | 57 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/src/xinput.xml b/src/xinput.xml index c0b497e..9a35e9d 100644 --- a/src/xinput.xml +++ b/src/xinput.xml @@ -987,25 +987,8 @@ This affects the following: - - - - - - - - - - - - num_events - 32 - - - - num_classes - - + @@ -2642,6 +2625,42 @@ This affects the following: + + + + + + + + + + + + + + + + + num_events + + + num_classes + + + +