From d618081dd0475a2edd1e3f382ebd73ee5a26337e Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 5 Aug 2019 16:58:35 +0200 Subject: [PATCH] Add version code --- fido2/version.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/fido2/version.h b/fido2/version.h index fe5f293..95c98f3 100644 --- a/fido2/version.h +++ b/fido2/version.h @@ -17,5 +17,21 @@ #define SOLO_VERSION __STR(SOLO_VERSION_MAJ) "." __STR(SOLO_VERSION_MIN) "." __STR(SOLO_VERSION_PATCH) #endif +#include +#include + +typedef struct { + union{ + uint32_t raw; + struct { + uint8_t major; + uint8_t minor; + uint8_t patch; + uint8_t reserved; + }; + }; +} version_t; + +bool is_newer(const version_t* const newer, const version_t* const older); #endif