diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-13 20:37:23 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-13 20:37:23 +0200 |
commit | 78f8f18e48d25547e837630d8317ef029bba6d72 (patch) | |
tree | 8e6055aeec0b27733ff53804d13c98ed4e61dafd /shared/bin.h | |
parent | 385b47211ea8674f97f014537d694bb2efbd6ab9 (diff) |
more protocol parsing done
Diffstat (limited to 'shared/bin.h')
-rw-r--r-- | shared/bin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared/bin.h b/shared/bin.h index c7405be..bfcda0c 100644 --- a/shared/bin.h +++ b/shared/bin.h @@ -2,11 +2,12 @@ #include <stdint.h> +/** @brief binary data container with length */ 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); +/** @brief allocate new ws_s_bin struct */ +ws_s_bin *ws_bin_s_alloc(uint16_t bytes); |