From d94769a975612072dc03fa378bc79856c07cd66b Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Sat, 30 Oct 2010 12:14:41 -0600 Subject: add load-extension support --- gr-audio-windows/src/audio_windows.i | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gr-audio-windows/src/audio_windows.i') diff --git a/gr-audio-windows/src/audio_windows.i b/gr-audio-windows/src/audio_windows.i index b5b6f562e..e8a1ba2c9 100644 --- a/gr-audio-windows/src/audio_windows.i +++ b/gr-audio-windows/src/audio_windows.i @@ -61,3 +61,13 @@ class audio_windows_source : public gr_sync_block { public: ~audio_windows_source (); }; + +#if SWIGGUILE +%scheme %{ +(load-extension "libguile-audio_windows" "scm_init_gnuradio_audio_windows_module") +%} + +%goops %{ +(use-modules (gnuradio gnuradio_core_runtime)) +%} +#endif -- cgit From 0b5f66113f43d2ba94a1ca741b5ce65e1f9f2c02 Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Fri, 3 Dec 2010 23:30:54 -0800 Subject: Rename libguile- to libguile-gnuradio- to match guile library naming convention. The stuff in gnuradio-core ends up with funky names, but that could be fixed by renaming gnuradio_core_filter.i -> core_filter.i etc. --- gr-audio-windows/src/audio_windows.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-audio-windows/src/audio_windows.i') diff --git a/gr-audio-windows/src/audio_windows.i b/gr-audio-windows/src/audio_windows.i index e8a1ba2c9..b4b5e566b 100644 --- a/gr-audio-windows/src/audio_windows.i +++ b/gr-audio-windows/src/audio_windows.i @@ -64,7 +64,7 @@ class audio_windows_source : public gr_sync_block { #if SWIGGUILE %scheme %{ -(load-extension "libguile-audio_windows" "scm_init_gnuradio_audio_windows_module") +(load-extension "libguile-gnuradio-audio_windows" "scm_init_gnuradio_audio_windows_module") %} %goops %{ -- cgit From 08907ee94fb6c34531d57b988324c67c26c8b747 Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Fri, 10 Dec 2010 16:15:40 -0800 Subject: Use load-extension-global instead of load-extension --- gr-audio-windows/src/audio_windows.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-audio-windows/src/audio_windows.i') diff --git a/gr-audio-windows/src/audio_windows.i b/gr-audio-windows/src/audio_windows.i index b4b5e566b..c154eacd6 100644 --- a/gr-audio-windows/src/audio_windows.i +++ b/gr-audio-windows/src/audio_windows.i @@ -64,7 +64,7 @@ class audio_windows_source : public gr_sync_block { #if SWIGGUILE %scheme %{ -(load-extension "libguile-gnuradio-audio_windows" "scm_init_gnuradio_audio_windows_module") +(load-extension-global "libguile-gnuradio-audio_windows" "scm_init_gnuradio_audio_windows_module") %} %goops %{ -- cgit From 5748eff26f835bffedb41bd5748ccbaefbe1e02f Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Mon, 14 Mar 2011 10:26:56 -0700 Subject: audio: remove obsoleted individual top-level components --- gr-audio-windows/src/audio_windows.i | 73 ------------------------------------ 1 file changed, 73 deletions(-) delete mode 100644 gr-audio-windows/src/audio_windows.i (limited to 'gr-audio-windows/src/audio_windows.i') diff --git a/gr-audio-windows/src/audio_windows.i b/gr-audio-windows/src/audio_windows.i deleted file mode 100644 index c154eacd6..000000000 --- a/gr-audio-windows/src/audio_windows.i +++ /dev/null @@ -1,73 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2004,2009 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * GNU Radio is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3, or (at your option) - * any later version. - * - * GNU Radio is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Radio; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, - * Boston, MA 02110-1301, USA. - */ - -%include "gnuradio.i" // the common stuff - -%{ -#include "audio_windows_sink.h" -#include "audio_windows_source.h" -%} - -// ---------------------------------------------------------------- - -GR_SWIG_BLOCK_MAGIC(audio_windows,sink) - -audio_windows_sink_sptr -audio_windows_make_sink (int sampling_freq, - const std::string dev = "" - ) throw (std::runtime_error); - - -class audio_windows_sink : public gr_sync_block { - protected: - audio_windows_sink (int sampling_freq, const std::string device_name = ""); - - public: - ~audio_windows_sink (); -}; - -// ---------------------------------------------------------------- - -GR_SWIG_BLOCK_MAGIC(audio_windows,source) - -audio_windows_source_sptr -audio_windows_make_source (int sampling_freq, - const std::string dev = "" - ) throw (std::runtime_error); - -class audio_windows_source : public gr_sync_block { - protected: - audio_windows_source (int sampling_freq, const std::string device_name = ""); - - public: - ~audio_windows_source (); -}; - -#if SWIGGUILE -%scheme %{ -(load-extension-global "libguile-gnuradio-audio_windows" "scm_init_gnuradio_audio_windows_module") -%} - -%goops %{ -(use-modules (gnuradio gnuradio_core_runtime)) -%} -#endif -- cgit