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.
This commit is contained in:
parent
5353c0216e
commit
e3ec1f7463
|
@ -3137,6 +3137,7 @@ def c_request(self, name):
|
||||||
if self.c_need_aux:
|
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, False, True)
|
||||||
_c_request_helper(self, name, 'xcb_void_cookie_t', True, True, 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.
|
# We generate the manpage afterwards because _c_type_setup has been called.
|
||||||
# TODO: what about aux helpers?
|
# TODO: what about aux helpers?
|
||||||
|
|
Loading…
Reference in New Issue