[Xcb-commit] libxcb: src

Christian Linhart clinhart at kemper.freedesktop.org
Sun Feb 22 02:59:35 PST 2015


 src/c_client.py |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e3ec1f74637237ce500dfd0ca59f2e422da4e019
Author: Jaya Tiwari <tiwari.jaya18 at gmail.com>
Date:   Thu Jan 22 12:16:33 2015 -0500

    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 at gmail.com>
    Reviewed-by: Christian Linhart <chris at 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.

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?


More information about the xcb-commit mailing list