diff options
author | Ran Benita <ran234@gmail.com> | 2014-10-12 21:58:18 +0300 |
---|---|---|
committer | Christian Linhart <chris@demorecorder.com> | 2015-03-15 12:11:59 +0100 |
commit | c65005e9d0ce60524d2e883c13c027a5f1f7914c (patch) | |
tree | 5df957aa99a11dcf11b25c56e3146de3a334ffa5 /src | |
parent | 6872e925828e615e2c1d4a0bbcc6be6a32fa4e7a (diff) |
c_client.py: spell out keyword arguments in c_request() for clarity
Signed-off-by: Ran Benita <ran234@gmail.com>
Reviewed-by: Christian Linhart <chris@demorecorder.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/c_client.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/c_client.py b/src/c_client.py index 6c4ee58..a604c76 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -3082,11 +3082,11 @@ def c_request(self, name): _c_complex(self.reply) # Request prototypes has_fds = _c_reply_has_fds(self.reply) - _c_request_helper(self, name, self.c_cookie_type, False, True, False, has_fds) - _c_request_helper(self, name, self.c_cookie_type, False, False, False, has_fds) + _c_request_helper(self, name, self.c_cookie_type, void=False, regular=True, aux=False, reply_fds=has_fds) + _c_request_helper(self, name, self.c_cookie_type, void=False, regular=False, aux=False, reply_fds=has_fds) if self.c_need_aux: - _c_request_helper(self, name, self.c_cookie_type, False, True, True, has_fds) - _c_request_helper(self, name, self.c_cookie_type, False, False, True, has_fds) + _c_request_helper(self, name, self.c_cookie_type, void=False, regular=True, aux=True, reply_fs=has_fds) + _c_request_helper(self, name, self.c_cookie_type, void=False, regular=False, aux=True, reply_fs=has_fds) # Reply accessors _c_accessors(self.reply, name + ('reply',), name) _c_reply(self, name) @@ -3094,17 +3094,17 @@ def c_request(self, name): _c_reply_fds(self, name) else: # Request prototypes - _c_request_helper(self, name, 'xcb_void_cookie_t', True, False) - _c_request_helper(self, name, 'xcb_void_cookie_t', True, True) + _c_request_helper(self, name, 'xcb_void_cookie_t', void=True, regular=False) + _c_request_helper(self, name, 'xcb_void_cookie_t', void=True, regular=True) 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_request_helper(self, name, 'xcb_void_cookie_t', void=True, regular=False, aux=True) + _c_request_helper(self, name, 'xcb_void_cookie_t', void=True, regular=True, aux=True) _c_accessors(self, name, name) # We generate the manpage afterwards because _c_type_setup has been called. # TODO: what about aux helpers? cookie_type = self.c_cookie_type if self.reply else 'xcb_void_cookie_t' - _man_request(self, name, cookie_type, not self.reply, False) + _man_request(self, name, cookie_type, void=not self.reply, aux=False) def c_event(self, name): ''' |