aboutsummaryrefslogtreecommitdiff
path: root/shared/bin.h
diff options
context:
space:
mode:
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);