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