diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-10-18 12:23:34 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-10-18 12:23:34 +0930 |
commit | 52e2f24b3a21741d2fb0614642fd5b12b72c0d3d (patch) | |
tree | 981aff4c7b50cec4b5e1acddfa777b438cbccd35 | |
parent | 3c5555544e06f1be70e6981446e2a92dc1e2aecd (diff) |
Create new XAttachInfo class for attachment info (slave devices).
Thanks to XLibs design we can't just change XDeviceInfo without breaking the
ABI. So here's a new class that isn't actually a class on the wire.
-rw-r--r-- | XI.h | 1 | ||||
-rw-r--r-- | XInput.h | 17 |
2 files changed, 18 insertions, 0 deletions
@@ -255,6 +255,7 @@ SOFTWARE. #define ProximityClass 4 #define FocusClass 5 #define OtherClass 6 +#define AttachClass 7 #define KbdFeedbackClass 0 #define PtrFeedbackClass 1 @@ -893,6 +893,23 @@ typedef struct _XValuatorInfo XAxisInfoPtr axes; } XValuatorInfo; +/** + * Fake class, added to each device when parsing XListInputDevices internally. + * Indicates the master device this device is attached to. If the device is a + * master device, the value of attached is to be ignored. + */ +typedef struct _XAttachInfo + { +#if defined(__cplusplus) || defined(c_plusplus) + XID c_class; +#else + XID class; +#endif + int length; + unsigned char attached; + } XAttachInfo; + +typedef struct _XAttachInfo *XAttachInfoPtr; /******************************************************************* * |