2021-01-28 16:54:22 +00:00
|
|
|
#define KEYDB_REAL_VERSION "255.255.255"
|
|
|
|
#define KEYDB_VERSION_NUM 0x00ffffff
|
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
|
|
|
|
{
|
2020-03-17 17:25:36 -04:00
|
|
|
EqualVersion,
|
2020-03-17 17:11:41 -04:00
|
|
|
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
|
|
|
|
}
|
2020-03-26 01:18:21 -04:00
|
|
|
#endif
|