client/server: simplify setup packet handling

Instead of writing (and logging errors for) every parameter, one at a
time, send all fixed size data in a single struct, followed by all the
variable length data.
This commit is contained in:
Daniel Eklöf 2020-11-21 20:21:18 +01:00
parent 3640164917
commit fc81f413c0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 127 additions and 178 deletions

View file

@ -123,7 +123,7 @@ executable(
'render.c', 'render.h',
'search.c', 'search.h',
'selection.c', 'selection.h',
'server.c', 'server.h',
'server.c', 'server.h', 'client-protocol.h',
'shm.c', 'shm.h',
'sixel.c', 'sixel.h',
'slave.c', 'slave.h',
@ -142,7 +142,7 @@ executable(
executable(
'footclient',
'client.c',
'client.c', 'client-protocol.h',
'log.c', 'log.h',
'macros.h',
'xmalloc.c', 'xmalloc.h',