aboutsummaryrefslogtreecommitdiff
path: root/shared/bin.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-13 20:37:23 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-13 20:37:23 +0200
commit78f8f18e48d25547e837630d8317ef029bba6d72 (patch)
tree8e6055aeec0b27733ff53804d13c98ed4e61dafd /shared/bin.h
parent385b47211ea8674f97f014537d694bb2efbd6ab9 (diff)
more protocol parsing done
Diffstat (limited to 'shared/bin.h')
-rw-r--r--shared/bin.h5
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);