From 833b5369378d5788dd430451803bf36a96dc3901 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 22 Jul 2011 13:59:29 -0700 Subject: uhd: added get_version_string and way to disable system info print --- host/lib/version.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'host/lib/version.cpp') diff --git a/host/lib/version.cpp b/host/lib/version.cpp index d75cc8fda..cfd198a08 100644 --- a/host/lib/version.cpp +++ b/host/lib/version.cpp @@ -1,5 +1,5 @@ // -// Copyright 2010 Ettus Research LLC +// Copyright 2010-2011 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@ #include #include +#ifndef UHD_DONT_PRINT_SYSTEM_INFO UHD_STATIC_BLOCK(print_system_info){ std::cout << BOOST_PLATFORM << "; " @@ -29,3 +30,8 @@ UHD_STATIC_BLOCK(print_system_info){ << std::endl << std::endl ; } +#endif + +std::string uhd::get_version_string(void){ + return UHD_VERSION_STRING; +} -- cgit v1.2.3