From 385b47211ea8674f97f014537d694bb2efbd6ab9 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 13 Oct 2022 15:59:14 +0200 Subject: WIP protocol implementation --- shared/bin.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 shared/bin.h (limited to 'shared/bin.h') diff --git a/shared/bin.h b/shared/bin.h new file mode 100644 index 0000000..c7405be --- /dev/null +++ b/shared/bin.h @@ -0,0 +1,12 @@ +#pragma once + +#include + +typedef struct { + uint16_t bytes; + uint8_t data[]; +} ws_s_bin; + +/** allocate new ws_s_bin struct and fill with `*data` for `bytes` bytes */ +ws_s_bin *ws_bin_s_alloc(uint16_t bytes, uint8_t *data); + -- cgit v1.2.3