2019-05-20 16:12:26 -04:00
|
|
|
#define KEYDB_REAL_VERSION "0.0.0"
|
2019-06-27 16:29:36 -04:00
|
|
|
extern const char *KEYDB_SET_VERSION; // Unlike real version, this can be overriden by the config
|
|
|
|
|
2020-03-17 17:11:41 -04:00
|
|
|
enum VersionCompareResult
|
|
|
|
{
|
|
|
|
EqualVerison,
|
|
|
|
OlderVersion,
|
|
|
|
NewerVersion,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SymVer
|
|
|
|
{
|
|
|
|
long major;
|
|
|
|
long minor;
|
|
|
|
long build;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct SymVer parseVersion(const char *version);
|
|
|
|
enum VersionCompareResult compareVersion(struct SymVer *pver);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|