summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaya Tiwari <tiwari.jaya18@gmail.com>2015-01-22 12:16:33 -0500
committerChristian Linhart <chris@demorecorder.com>2015-02-22 11:56:04 +0100
commite3ec1f74637237ce500dfd0ca59f2e422da4e019 (patch)
tree14e4ef89c498d52db6ccf3f4fc69f533edd4141a /src
parent5353c0216e091b64d01a43e6580e6d69b2ac16c7 (diff)
Adding accessors for requests
Added accessor functions for requests the same way they were added for structs,events and replies. Lists for replies have accessor functions now. Signed-off-by: Jaya Tiwari <tiwari.jaya18@gmail.com> Reviewed-by: Christian Linhart <chris@demorecorder.com> Comment from the Reviewer Christian Linhart: I have tested your patch after fixing the issues with the patch-format. It looks good: * only adds new functions, and does not modify existing functions. Therefore it is API and ABI compatible. * adds accessors for varsized-stuff in requests. This is needed for server-side XCB and may be useful for implementing X11-protocol proxies.
Diffstat (limited to 'src')
-rw-r--r--src/c_client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/c_client.py b/src/c_client.py
index cce620f..8a2900c 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -3137,6 +3137,7 @@ def c_request(self, name):
if self.c_need_aux:
_c_request_helper(self, name, 'xcb_void_cookie_t', True, False, True)
_c_request_helper(self, name, 'xcb_void_cookie_t', True, True, True)
+ _c_accessors(self, name, name)
# We generate the manpage afterwards because _c_type_setup has been called.
# TODO: what about aux helpers?