X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/ff999046a743cadb712418918b50bc5bb1074448..e210fa949da688d182d928638b65fcf236af3249:/client/tattlekey.c 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;