aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-buf.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-14 11:48:51 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-14 11:48:51 +0200
commit2cf895332ffd54ea1a43b090859943665709e420 (patch)
tree04f02ec914052515182c97457532c2f970877024 /lib/pbdrv/pb-buf.h
parent557b995f9641f7cb7a0566eefac7e576debec61a (diff)
decide on pbdrv serialization architecture
Diffstat (limited to 'lib/pbdrv/pb-buf.h')
-rw-r--r--lib/pbdrv/pb-buf.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/pbdrv/pb-buf.h b/lib/pbdrv/pb-buf.h
new file mode 100644
index 0000000..149b384
--- /dev/null
+++ b/lib/pbdrv/pb-buf.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <stddef.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+//! binary buffer struct
+typedef struct {
+ char * data; //! pointer to data
+ size_t size; //! size of data
+} pbdrv_buf_t;
+
+void pbdrv_buf_free(pbdrv_buf_t * buf);
+
+#ifdef __cplusplus
+}
+#endif
+