summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Linhart <chris@demorecorder.com>2017-01-20 18:55:48 +0100
committerChristian Linhart <chris@demorecorder.com>2017-03-11 10:49:04 +0100
commit89b022fdacfe7b39b2122c6ec1a4097767b1ee29 (patch)
tree695665049e2b619e9c5b9e48737377501b16b41a
parentf521896716a49331ae6ccc75a5bab7e47aa2aca8 (diff)
xinput: typedef for event_type_base
member event_type_base in struct InputClassInfo is a CARD8. This patch replaces the type with the new typedef EventTypeBase which is defined as a CARD8. This does not alter the ABI or API for that struct because typedefs do not appear in the ABI. And C handles typedefs as aliases. So there'll be no API issues as well. The libxcb generator adds additional functions that implement an iterator over this type. This is harmless because adding code is ABI/API compatible. The purpose of this change is to add more semantic info to this member variable of this struct. This helps with xcb-based generators or automatic code-checkers and things like that. Signed-off-by: Christian Linhart <chris@demorecorder.com>
-rw-r--r--src/xinput.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xinput.xml b/src/xinput.xml
index 94855ba..c0b497e 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -226,10 +226,11 @@ This affects the following:
</request>
<!-- OpenDevice -->
+ <typedef oldname="CARD8" newname="EventTypeBase" />
<struct name="InputClassInfo">
<field type="CARD8" name="class_id" enum="InputClass" />
- <field type="CARD8" name="event_type_base" />
+ <field type="EventTypeBase" name="event_type_base" />
</struct>
<request name="OpenDevice" opcode="3">