From 27608bfcc97e09372630237618eddce8a02d2fe6 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Mon, 2 Apr 2012 12:37:11 -0700 Subject: gr-uhd: Python users can now grab their current UHD version as a string --- gr-uhd/swig/uhd_swig.i | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gr-uhd/swig') 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 +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") -- cgit From 20a083fe0f7990b8796e2e7816687d6c89bda981 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Tue, 3 Apr 2012 16:56:38 -0700 Subject: gr-uhd: get_usrp_info has help info and can only be called with a recent enough version of UHD --- gr-uhd/swig/__init__.py | 2 +- gr-uhd/swig/uhd_swig.i | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gr-uhd/swig') diff --git a/gr-uhd/swig/__init__.py b/gr-uhd/swig/__init__.py index 82dbdd9e7..b4045e77f 100644 --- a/gr-uhd/swig/__init__.py +++ b/gr-uhd/swig/__init__.py @@ -1,5 +1,5 @@ # -# Copyright 2010-2011 Free Software Foundation, Inc. +# Copyright 2010-2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i index acc301d71..729719dcb 100644 --- a/gr-uhd/swig/uhd_swig.i +++ b/gr-uhd/swig/uhd_swig.i @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2010-2011 Free Software Foundation, Inc. + * Copyright 2010-2012 Free Software Foundation, Inc. * * This file is part of GNU Radio * -- cgit