From: Scott Worley Date: Mon, 9 Oct 2023 20:35:11 +0000 (-0700) Subject: client: Extract pending-send object as send_t X-Git-Tag: v0.1.0~46 X-Git-Url: http://git.scottworley.com/tattlekey/commitdiff_plain/e210fa949da688d182d928638b65fcf236af3249?ds=inline;hp=ff999046a743cadb712418918b50bc5bb1074448 client: Extract pending-send object as send_t --- diff --git a/client/tattlekey.c b/client/tattlekey.c index a11e6c1..78d1dcf 100644 --- a/client/tattlekey.c +++ b/client/tattlekey.c @@ -7,6 +7,12 @@ #include "config.h" #include "net.h" +typedef struct { + uint32_t timestamp; + u16_t seq; + u8_t send_count; +} send_t; + enum event_type { BUTTONPRESS, SEND }; typedef struct { enum event_type type; @@ -14,11 +20,7 @@ typedef struct { struct { uint32_t timestamp; } buttonpress; - struct { - uint32_t timestamp; - u16_t seq; - u8_t send_count; - } send; + send_t send; }; } event_t;