From 086f96a702a66e561b22d03cdeb98c2f97f1328b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 1 Mar 2023 10:32:32 +1000 Subject: [PATCH] proto: split up message length and opcode again Now that we have 64 bit integers on the wire and 64 bit object IDs, we're already different to the Wayland protocol. So we might as well get the full length and split message length and opcode again to make header parsing and composing simpler. This effectively reverts commit bf45a7182cb2f4c13f11e141fc846244d3ac6212. --- proto/protocol.xml | 7 ++-- src/brei-shared.c | 95 +++++++++++++++++++++++++++----------------- src/util-macros.h | 1 + test/eiproto.py.tmpl | 16 ++++---- 4 files changed, 69 insertions(+), 50 deletions(-) diff --git a/proto/protocol.xml b/proto/protocol.xml index bfbb583..0d7a02b 100644 --- a/proto/protocol.xml +++ b/proto/protocol.xml @@ -31,13 +31,12 @@