summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorNicholas Corgan2012-04-02 12:37:11 -0700
committerNicholas Corgan2012-04-02 12:37:11 -0700
commit27608bfcc97e09372630237618eddce8a02d2fe6 (patch)
tree165af21f1a1f81a6cd81ed5c43ca47fa022e0988 /gr-uhd
parent98c703b3282b47ae2e0deaf317468f789cc9176e (diff)
downloadgnuradio-27608bfcc97e09372630237618eddce8a02d2fe6.tar.gz
gnuradio-27608bfcc97e09372630237618eddce8a02d2fe6.tar.bz2
gnuradio-27608bfcc97e09372630237618eddce8a02d2fe6.zip
gr-uhd: Python users can now grab their current UHD version as a string
Diffstat (limited to 'gr-uhd')
-rw-r--r--gr-uhd/swig/uhd_swig.i8
1 files changed, 8 insertions, 0 deletions
diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i
index 0b2f9febc..acc301d71 100644
--- a/gr-uhd/swig/uhd_swig.i
+++ b/gr-uhd/swig/uhd_swig.i
@@ -125,6 +125,14 @@ static const size_t ALL_MBOARDS = uhd::usrp::multi_usrp::ALL_MBOARDS;
%}
static const size_t ALL_MBOARDS;
+%{
+#include <uhd/version.hpp>
+std::string get_version_string(void){
+ return uhd::get_version_string();
+}
+%}
+std::string get_version_string(void);
+
#if SWIGGUILE
%scheme %{
(load-extension-global "libguile-gnuradio-uhd_swig" "scm_init_gnuradio_uhd_swig_module")