summaryrefslogtreecommitdiff
path: root/src/c_client.py
diff options
context:
space:
mode:
authorChristian Linhart <chris@demorecorder.com>2014-09-04 17:50:49 +0200
committerChristian Linhart <chris@demorecorder.com>2014-11-03 11:23:16 +0100
commitb1e4a3bbd8194d12d7fcd9705fcbbe0deb59bcba (patch)
tree3866343b6c05d99b6693c09ffdd3e6e751f82ee3 /src/c_client.py
parent6234225b4be862c5882bf547d066c5a3885906dd (diff)
generator: generate accessors for events, too
Accessors are generally needed for var-sized fields and fields after var-sized fields. Generic events can have ver-sized fields. Therefore they need accessors. Message-ID: <1409845851-38950-2-git-send-email-chris@demorecorder.com> Patch-Thread-Subject: [Xcb] support popcount of a list and associated xml changes Patch-Set: PopcountList Patch-Number: libxcb 2/4 Patch-Version: V1 Signed-off-by: Christian Linhart <chris@DemoRecorder.com>
Diffstat (limited to 'src/c_client.py')
-rw-r--r--src/c_client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c_client.py b/src/c_client.py
index 9c55b58..9c71e1a 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -3077,6 +3077,10 @@ def c_event(self, name):
if self.name == name:
_c_type_setup(self, name, ('event',))
+ # generate accessors
+ # (needed for fields after var-sized fields, for lists with var-sized elements,
+ # switches, ...)
+ _c_accessors(self, name, name)
else:
# no type-setup needed for eventcopies
# (the type-setup of an eventcopy would overwrite members of the original