From e3ec1f74637237ce500dfd0ca59f2e422da4e019 Mon Sep 17 00:00:00 2001 From: Jaya Tiwari Date: Thu, 22 Jan 2015 12:16:33 -0500 Subject: [PATCH] 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 Reviewed-by: Christian Linhart 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. --- src/c_client.py | 1 + 1 file changed, 1 insertion(+) 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?