[Xcb] [PATCH libxcb 2/3] c_client: Don't serialise non-wire fields
Daniel Stone
daniels at collabora.com
Wed Apr 26 16:05:45 UTC 2017
For when we have a variable-sized field followed by a fixed field, make
sure we do not serialise non-wire fields.
Signed-off-by: Daniel Stone <daniels at collabora.com>
---
src/c_client.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/c_client.py b/src/c_client.py
index 0cbdf30..7358826 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -2379,7 +2379,7 @@ def _c_request_helper(self, name, void, regular, aux=False, reply_fds=False):
count = 4
for field in param_fields:
- if not field.type.fixed_size():
+ if field.wire and not field.type.fixed_size():
_c(' /* %s %s */', field.type.c_type, field.c_field_name)
# default: simple cast to char *
if not field.type.c_need_serialize and not field.type.c_need_sizeof:
--
2.12.2
More information about the Xcb
mailing list