1 #include <freerdp/version.h>
2 #include <freerdp/freerdp.h>
4 int TestVersion(
int argc,
char* argv[])
6 const char* version = NULL;
7 const char* git = NULL;
8 const char* build = NULL;
14 freerdp_get_version(&major, &minor, &revision);
16 if (major != FREERDP_VERSION_MAJOR)
19 if (minor != FREERDP_VERSION_MINOR)
22 if (revision != FREERDP_VERSION_REVISION)
25 version = freerdp_get_version_string();
30 git = freerdp_get_build_revision();
35 if (strncmp(git, FREERDP_GIT_REVISION,
sizeof(FREERDP_GIT_REVISION)) != 0)
38 build = freerdp_get_build_config();