summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--XI2proto.h12
-rw-r--r--XI2proto.txt3
2 files changed, 10 insertions, 5 deletions
diff --git a/XI2proto.h b/XI2proto.h
index 1ea6270..67502bf 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -778,6 +778,10 @@ typedef struct
::XIFloatingSlave */
BOOL enabled; /**< TRUE if the device is enabled */
uint16_t pad;
+ uint32_t flags; /**< ::XIMasterAdded, ::XIMasterDeleted,
+ ::XISlaveAttached, ::XISlaveDetached,
+ ::XISlaveAdded, ::XISlaveRemoved,
+ ::XIDeviceEnabled, ::XIDeviceDisabled */
} xXIHierarchyInfo;
typedef struct
@@ -789,10 +793,10 @@ typedef struct
uint16_t evtype; /**< ::XI_Hierarchy */
uint16_t deviceid;
Time time;
- uint32_t flags; /* ::XIMasterAdded, ::XIMasterDeleted,
- ::XISlaveAttached, ::XISlaveDetached,
- ::XISlaveAdded, ::XISlaveRemoved,
- ::XIDeviceEnabled, ::XIDeviceDisabled */
+ uint32_t flags; /**< ::XIMasterAdded, ::XIMasterDeleted,
+ ::XISlaveAttached, ::XISlaveDetached,
+ ::XISlaveAdded, ::XISlaveRemoved,
+ ::XIDeviceEnabled, ::XIDeviceDisabled */
uint16_t num_devices;
uint16_t pad0;
uint32_t pad1;
diff --git a/XI2proto.txt b/XI2proto.txt
index be27a92..e4336b6 100644
--- a/XI2proto.txt
+++ b/XI2proto.txt
@@ -1166,7 +1166,8 @@ EVENTHEADER { type: BYTE
HIERARCHYINFO { deviceid: DEVICEID,
attachment: DEVICEID,
type: DEVICEUSE
- enabled: BOOL }
+ enabled: BOOL
+ flags: SETofHIERARCHYMASK}
flags
Set of the changes that have occured, causing this event.