Version info

This commit is contained in:
Paul Hollinsky
2018-10-29 16:35:14 -04:00
parent 37ef932e03
commit 4f91d0775f
8 changed files with 80 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "icsneo/api/version.h"
#include "generated/buildinfo.h"
using namespace icsneo;
neoversion_t icsneo::GetVersion(void) {
neoversion_t version = {};
version.major = BUILD_MAJOR;
version.minor = BUILD_MINOR;
version.patch = BUILD_PATCH;
version.metadata = BUILD_METADATA;
version.buildBranch = GIT_BRANCH;
version.buildTag = GIT_DESCRIBE;
return version;
}