futriix/src/version.h

31 lines
539 B
C

#define KEYDB_REAL_VERSION "255.255.255"
#define KEYDB_VERSION_NUM 0x00ffffff
extern const char *KEYDB_SET_VERSION; // Unlike real version, this can be overriden by the config
enum VersionCompareResult
{
EqualVersion,
OlderVersion,
NewerVersion,
IncompatibleVersion,
};
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