diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-01 15:28:09 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-01 15:28:09 +0100 |
commit | 5dd83c7e6d9eb830707ff31702f3f09a4a22a260 (patch) | |
tree | ea65336ccbc170a737d301f5f30cf74c3ed9ab69 /xen/common/version.c | |
parent | 9212caa7a4c750a9aad9a58e4b4fe4fef7e13b8b (diff) | |
download | xen-5dd83c7e6d9eb830707ff31702f3f09a4a22a260.tar.gz xen-5dd83c7e6d9eb830707ff31702f3f09a4a22a260.tar.bz2 xen-5dd83c7e6d9eb830707ff31702f3f09a4a22a260.zip |
[XEN] Hide compile-time information values behind a
functional interface, so that the values are contained
within a single object file.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/version.c')
-rw-r--r-- | xen/common/version.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/xen/common/version.c b/xen/common/version.c new file mode 100644 index 0000000000..6afa128cd0 --- /dev/null +++ b/xen/common/version.c @@ -0,0 +1,56 @@ +#include <xen/compile.h> + +const char *xen_compile_date(void) +{ + return XEN_COMPILE_DATE; +} + +const char *xen_compile_time(void) +{ + return XEN_COMPILE_TIME; +} + +const char *xen_compile_by(void) +{ + return XEN_COMPILE_BY; +} + +const char *xen_compile_domain(void) +{ + return XEN_COMPILE_DOMAIN; +} + +const char *xen_compile_host(void) +{ + return XEN_COMPILE_HOST; +} + +const char *xen_compiler(void) +{ + return XEN_COMPILER; +} + +unsigned int xen_major_version(void) +{ + return XEN_VERSION; +} + +unsigned int xen_minor_version(void) +{ + return XEN_SUBVERSION; +} + +const char *xen_extra_version(void) +{ + return XEN_EXTRAVERSION; +} + +const char *xen_changeset(void) +{ + return XEN_CHANGESET; +} + +const char *xen_banner(void) +{ + return XEN_BANNER; +} |