FreeRDP
winpr.c
1 
21 #include <winpr/config.h>
22 
23 #include <winpr/buildflags.h>
24 
25 #include <stdlib.h>
26 #include <stdio.h>
27 #include <winpr/crt.h>
28 #include <winpr/string.h>
29 #include <winpr/winpr.h>
30 #include <winpr/version.h>
31 #include <winpr/wlog.h>
32 
33 #if !defined(WIN32)
34 #include <pthread.h>
35 #endif
36 
37 void winpr_get_version(int* major, int* minor, int* revision)
38 {
39  if (major)
40  *major = WINPR_VERSION_MAJOR;
41  if (minor)
42  *minor = WINPR_VERSION_MINOR;
43  if (revision)
44  *revision = WINPR_VERSION_REVISION;
45 }
46 
47 const char* winpr_get_version_string(void)
48 {
49  return WINPR_VERSION_FULL;
50 }
51 
52 const char* winpr_get_build_revision(void)
53 {
54  return WINPR_GIT_REVISION;
55 }
56 
57 const char* winpr_get_build_config(void)
58 {
59  static const char build_config[] =
60  "Build configuration: " WINPR_BUILD_CONFIG "\n"
61  "Build type: " WINPR_BUILD_TYPE "\n"
62  "CFLAGS: " WINPR_CFLAGS "\n"
63  "Compiler: " WINPR_COMPILER_ID ", " WINPR_COMPILER_VERSION "\n"
64  "Target architecture: " WINPR_TARGET_ARCH "\n";
65 
66  return build_config;
67 }