That can be private

This commit is contained in:
XANTRONIX Development 2020-09-21 21:35:04 -05:00
parent 95f110cb18
commit 9c8837c4ef
2 changed files with 7 additions and 7 deletions

View file

@ -9,11 +9,6 @@
#define SKIPSTONE_MESSAGE_MAX_PAYLOAD 4096
typedef struct _skipstone_message_header {
uint16_t size,
id;
} skipstone_message_header;
ssize_t skipstone_message_pack(void *message,
size_t len,
const char *template, ...);

View file

@ -18,6 +18,11 @@ struct _skipstone_link {
struct termios attrs;
};
struct header {
uint16_t size,
id;
};
skipstone_link *skipstone_link_open(const char *device) {
skipstone_link *link;
struct termios t;
@ -74,7 +79,7 @@ ssize_t skipstone_link_send(skipstone_link *link,
void *buf,
uint16_t id,
size_t size) {
skipstone_message_header header;
struct header header;
ssize_t len;
@ -102,7 +107,7 @@ ssize_t skipstone_link_recv(skipstone_link *link,
void *buf,
uint16_t *id,
size_t size) {
skipstone_message_header header;
struct header header;
size_t len;