summaryrefslogtreecommitdiff
path: root/shared/semver.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/semver.h')
-rw-r--r--shared/semver.h11
1 files changed, 11 insertions, 0 deletions
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 <stdint.h>
+
+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);