From fda1e9389c4bcef89a2bcdd2c01f0727e9efdb18 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 26 May 2022 14:45:36 +0200 Subject: add semver parsing, more error codes and verify avr compilation compatibility --- shared/semver.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shared/semver.h (limited to 'shared/semver.h') diff --git a/shared/semver.h b/shared/semver.h new file mode 100644 index 0000000..a99ae61 --- /dev/null +++ b/shared/semver.h @@ -0,0 +1,11 @@ +#pragma once + +#include + +typedef struct { + uint8_t major; + uint8_t minor; + uint8_t patch; +} w2_semver_t; + +w2_semver_t w2_semver_parse(const char *str, uint8_t length); -- cgit v1.2.3