aboutsummaryrefslogtreecommitdiff
path: root/shared/bin.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/bin.h')
-rw-r--r--shared/bin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/bin.h b/shared/bin.h
index 1c9b951..d9eacd7 100644
--- a/shared/bin.h
+++ b/shared/bin.h
@@ -27,6 +27,9 @@ typedef struct {
uint8_t data[];
} w2_s_bin;
+/** allocate new w2_s_bin struct and fill with `*data` for `bytes` bytes */
+w2_s_bin *w2_bin_s_alloc(uint16_t bytes, uint8_t *data);
+
typedef struct {
enum w2_e_struct_types type;
uint16_t length;