aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-buf.h
blob: 671f344da42fafcc87e1beb42ab6e63a48b27042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
} pb_buf_t;

void pb_buf_free(pb_buf_t * buf);

#ifdef __cplusplus
}
#endif