summaryrefslogtreecommitdiff
path: root/gr-usrp/src/usrp_swig.i
diff options
context:
space:
mode:
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