summaryrefslogtreecommitdiff
path: root/gr-uhd/swig/uhd_swig.i
diff options
context:
space:
mode:
authorJosh Blum2010-11-16 14:01:16 -0800
committerJosh Blum2010-11-16 14:01:16 -0800
commit6758e7a016eaaa237c2da6e7fb5d5508c9d60bb6 (patch)
tree30836a32f8ad6344b73fb45e432ad7e06d528fae /gr-uhd/swig/uhd_swig.i
parent53eee1c624794056fcba50a5eb50b864cbf159dd (diff)
parent38c60bd0bfb411c2557b84f92bcbd66395475ba6 (diff)
downloadgnuradio-6758e7a016eaaa237c2da6e7fb5d5508c9d60bb6.tar.gz
gnuradio-6758e7a016eaaa237c2da6e7fb5d5508c9d60bb6.tar.bz2
gnuradio-6758e7a016eaaa237c2da6e7fb5d5508c9d60bb6.zip
Merge branch 'uhd_ranges' into next
Diffstat (limited to 'gr-uhd/swig/uhd_swig.i')
-rw-r--r--gr-uhd/swig/uhd_swig.i12
1 files changed, 12 insertions, 0 deletions
diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i
index d332bb617..3c6773374 100644
--- a/gr-uhd/swig/uhd_swig.i
+++ b/gr-uhd/swig/uhd_swig.i
@@ -68,6 +68,7 @@ namespace std {
// used types
////////////////////////////////////////////////////////////////////////
%include <uhd/config.hpp>
+%include <uhd/utils/pimpl.hpp>
%include <uhd/types/ranges.hpp>
%include <uhd/types/tune_request.hpp>
%include <uhd/types/tune_result.hpp>
@@ -75,6 +76,17 @@ namespace std {
%include <uhd/types/time_spec.hpp>
%include <uhd/types/clock_config.hpp>
+//Re-create range typedefs here with %template as they are not imported.
+//Replicate all the levels of templated inheritance so swig understands.
+
+%template(float_range_t) uhd::range_t<float>;
+%template(_float_range_vector_t) std::vector<uhd::range_t<float> >;
+%template(gain_range_t) uhd::meta_range_t<float>;
+
+%template(double_range_t) uhd::range_t<double>;
+%template(_double_range_vector_t) std::vector<uhd::range_t<double> >;
+%template(freq_range_t) uhd::meta_range_t<double>;
+
////////////////////////////////////////////////////////////////////////
// block magic
////////////////////////////////////////////////////////////////////////