That can be private
This commit is contained in:
parent
95f110cb18
commit
9c8837c4ef
2 changed files with 7 additions and 7 deletions
|
@ -9,11 +9,6 @@
|
||||||
|
|
||||||
#define SKIPSTONE_MESSAGE_MAX_PAYLOAD 4096
|
#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,
|
ssize_t skipstone_message_pack(void *message,
|
||||||
size_t len,
|
size_t len,
|
||||||
const char *template, ...);
|
const char *template, ...);
|
||||||
|
|
|
@ -18,6 +18,11 @@ struct _skipstone_link {
|
||||||
struct termios attrs;
|
struct termios attrs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct header {
|
||||||
|
uint16_t size,
|
||||||
|
id;
|
||||||
|
};
|
||||||
|
|
||||||
skipstone_link *skipstone_link_open(const char *device) {
|
skipstone_link *skipstone_link_open(const char *device) {
|
||||||
skipstone_link *link;
|
skipstone_link *link;
|
||||||
struct termios t;
|
struct termios t;
|
||||||
|
@ -74,7 +79,7 @@ ssize_t skipstone_link_send(skipstone_link *link,
|
||||||
void *buf,
|
void *buf,
|
||||||
uint16_t id,
|
uint16_t id,
|
||||||
size_t size) {
|
size_t size) {
|
||||||
skipstone_message_header header;
|
struct header header;
|
||||||
|
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
|
||||||
|
@ -102,7 +107,7 @@ ssize_t skipstone_link_recv(skipstone_link *link,
|
||||||
void *buf,
|
void *buf,
|
||||||
uint16_t *id,
|
uint16_t *id,
|
||||||
size_t size) {
|
size_t size) {
|
||||||
skipstone_message_header header;
|
struct header header;
|
||||||
|
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue