diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-11-21 19:21:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-11-21 19:21:18 +0000 |
| commit | fc81f413c040a93fd219699599033e6bc2615438 (patch) | |
| tree | 44a3b6eb5fa735d7999530563e29c78c2d912c8e /client-protocol.h | |
| parent | Merge branch 'dpi-unaware' (diff) | |
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.
Diffstat (limited to 'client-protocol.h')
| -rw-r--r-- | client-protocol.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/client-protocol.h b/client-protocol.h new file mode 100644 index 00000000..49e37378 --- /dev/null +++ b/client-protocol.h @@ -0,0 +1,31 @@ +#pragma once + +#include <stdint.h> +#include <stdbool.h> +#include <stddef.h> + +struct client_argv { + uint16_t len; + /* char arg[static len]; */ +}; + +struct client_data { + uint8_t maximized:1; + uint8_t fullscreen:1; + uint8_t hold:1; + uint8_t login_shell:1; + + uint16_t cwd_len; + uint16_t term_len; + uint16_t title_len; + uint16_t app_id_len; + + uint16_t argc; + + /* char cwd[stati cwd_len]; */ + /* char term[static term_len]; */ + /* char title[static title_len]; */ + /* char app_id[static app_id_len]; */ + + /* struct client_argv argv[static argc]; */ +}; |
