summaryrefslogtreecommitdiff
path: root/gr-usrp/src/usrp_swig.i
diff options
context:
space:
mode:
authorNick Foster2011-01-10 15:25:19 -0800
committerNick Foster2011-01-10 15:25:19 -0800
commit70e978b7fdc0285b56ed3ec7be3f10dc3d922504 (patch)
tree75231113034c1ac75277fbe444c02e9b600b2a7a /gr-usrp/src/usrp_swig.i
parent0e92b93f21fc9c324c379bc318120d414e7422cc (diff)
parentbb438e7d12c5767123f8abed5810f284a5f18bf8 (diff)
downloadgnuradio-70e978b7fdc0285b56ed3ec7be3f10dc3d922504.tar.gz
gnuradio-70e978b7fdc0285b56ed3ec7be3f10dc3d922504.tar.bz2
gnuradio-70e978b7fdc0285b56ed3ec7be3f10dc3d922504.zip
Merge branch 'next' of http://gnuradio.org/git/gnuradio into next
Diffstat (limited to 'gr-usrp/src/usrp_swig.i')
-rw-r--r--gr-usrp/src/usrp_swig.i13
1 files changed, 13 insertions, 0 deletions
diff --git a/gr-usrp/src/usrp_swig.i b/gr-usrp/src/usrp_swig.i
index 2a47877c3..b1797d758 100644
--- a/gr-usrp/src/usrp_swig.i
+++ b/gr-usrp/src/usrp_swig.i
@@ -39,6 +39,7 @@
%include "usrp_sink_c.i"
%include "usrp_sink_s.i"
+#ifdef SWIGPYTHON
//---Allow a more Pythonic interface
%pythoncode %{
@@ -141,3 +142,15 @@ usrp_source_c_sptr.pick_rx_subdevice = __pick_rx_subdevice
usrp_source_s_sptr.pick_rx_subdevice = __pick_rx_subdevice
%}
+#endif
+
+
+#if SWIGGUILE
+%scheme %{
+(load-extension-global "libguile-gnuradio-usrp_swig" "scm_init_gnuradio_usrp_swig_module")
+%}
+
+%goops %{
+(use-modules (gnuradio gnuradio_core_runtime))
+%}
+#endif