From acced13ba0d8ce57aaf342cc92ee489249cb0fc0 Mon Sep 17 00:00:00 2001 From: Christian Linhart Date: Thu, 4 Sep 2014 10:53:14 +0200 Subject: [PATCH] xinput: struct DeviceState: full support replace uninterpreted_data by switch-case this is needed by reply GetDeviceControl. spec: http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt?id=inputproto-2.3.1#n640 http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml?id=libXi-1.7.4#n1856 Note: Only the DeviceControl of type DeviceResolution is defined in both specs. ( this is struct name="DeviceResolutionState" in the xml. ) The other DeviceControls are not defined in any of the specs. code: http://cgit.freedesktop.org/xorg/proto/inputproto/tree/XI.h?id=inputproto-2.3.1#n170 http://cgit.freedesktop.org/xorg/proto/inputproto/tree/XIproto.h?id=inputproto-2.3.1#n1263 Message-ID: <1409820801-43629-3-git-send-email-chris@demorecorder.com> Patch-Thread-Subject: [Xcb] xinput: xml-fixes possible with new generator features Patch-Set: XmlFixesNewGenerator Patch-Number: proto 03/10 Patch-Version: V1 Signed-off-by: Christian Linhart --- src/xinput.xml | 54 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 7 deletions(-) diff --git a/src/xinput.xml b/src/xinput.xml index c99d20c..109bcba 100644 --- a/src/xinput.xml +++ b/src/xinput.xml @@ -47,7 +47,6 @@ which will, e.g., be necessary for server-side xcb. This affects the following: * QueryDeviceState reply field "classes" ( structs InputState, ... ) -* GetDeviceControl reply field "control" ( structs DeviceState, ... ) * ChangeDeviceControl request field "control" ( structs ChangeDeviceControl, ... ) * XIChangeHierarchy request field "changes" ( structs HierarchyChange, ... ) * struct XIDeviceInfo field "classes" ( structs DeviceClass, ... ) @@ -1128,12 +1127,53 @@ in struct DeviceTimeCoord. - - - len - 4 - - + + control_id + + resolution + + + num_valuators + + + num_valuators + + + num_valuators + + + + abs_calib + + + + + + + + + + + core + + + + + + enable + + + + + abs_area + + + + + + + + -- 2.34.1