aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-buf.h
diff options
context:
space:
mode:
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..78ee380
--- /dev/null
+++ b/lib/pbdrv/pb-buf.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "pb-types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+//! binary buffer struct
+typedef struct {
+ char * data; //! pointer to data
+ size_t size; //! size of data
+} pb_buf_t;
+
+void pb_buf_free(pb_buf_t * buf);
+
+#ifdef __cplusplus
+}
+#endif
+