blob: 5a734af7104f1567c42024e4dbe51e3c116c511f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
// FFI for semantic version
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct Semver
{
unsigned int major;
unsigned int minor;
unsigned int patch;
char prerelease[32];
char build[32];
} semver_t;
int satisfies(const semver_t* a, const semver_t* b);
int lessThan(const semver_t* a, const semver_t* b);
void nextMajor(const semver_t* a, semver_t* b);
void nextMinor(const semver_t* a, semver_t* b);
void nextPatch(const semver_t* a, semver_t* b);
#ifdef __cplusplus
}
#endif
|