From 54fb5592b4724934535a606f1981ea439533a4a8 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 16 Mar 2022 22:20:47 +0100 Subject: initial whatever Signed-off-by: Toni Uhlig --- src/ppkt.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ppkt.h (limited to 'src/ppkt.h') diff --git a/src/ppkt.h b/src/ppkt.h new file mode 100644 index 0000000..83cc78a --- /dev/null +++ b/src/ppkt.h @@ -0,0 +1,20 @@ +#ifndef PPKT_H +#define PPKT_H 1 + +#include + +#define PPKT_TYPE_DATA 0x0001u + +struct ppkt +{ + uint16_t type; + uint16_t data_size; + uint32_t sequence; + uint8_t data[0]; +}; + +void ppkt_header_prepare(struct ppkt *); + +void ppkt_header_process(struct ppkt *); + +#endif -- cgit v1.2.3