blob: 116dbf97638a9b1191e9f805aaaa4c0eb32bf663 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
struct pb_msg {
uint16_t addr;
char* data;
size_t length;
};
int pb_read(struct pb_msg* target, char* buf, size_t buf_sz);
int pb_write(struct pb_msg* target, char** buf, size_t* buf_sz);
#ifdef __cplusplus
}
#endif
|