summaryrefslogtreecommitdiff
path: root/python/runtime.i
diff options
context:
space:
mode:
authorJosh Blum2012-10-31 20:21:19 -0700
committerJosh Blum2012-10-31 20:21:19 -0700
commit32f9c796f5b30b7bd802c5f1802a94de2b50ec10 (patch)
tree9ef78700d66061c580f888121528575557dea971 /python/runtime.i
parent77f79c8e2c45d816a2ecb869b2869825b3293640 (diff)
downloadsandhi-32f9c796f5b30b7bd802c5f1802a94de2b50ec10.tar.gz
sandhi-32f9c796f5b30b7bd802c5f1802a94de2b50ec10.tar.bz2
sandhi-32f9c796f5b30b7bd802c5f1802a94de2b50ec10.zip
build system work
Diffstat (limited to 'python/runtime.i')
-rw-r--r--python/runtime.i71
1 files changed, 71 insertions, 0 deletions
diff --git a/python/runtime.i b/python/runtime.i
new file mode 100644
index 0000000..8895a7f
--- /dev/null
+++ b/python/runtime.i
@@ -0,0 +1,71 @@
+//
+// Copyright 2012 Josh Blum
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program 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 Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#define GR_CORE_API
+#define GRAS_API
+
+//not here to fight you swig, reference() is ambigi with shared ptr, but whatevs
+%ignore gri_agc_cc::reference();
+%ignore gri_agc2_ff::reference();
+%ignore gri_agc2_cc::reference();
+
+%{
+
+#include <gnuradio/thread_pool.hpp>
+#include <gnuradio/element.hpp>
+#include <gnuradio/block.hpp>
+#include <gnuradio/hier_block.hpp>
+#include <gnuradio/top_block.hpp>
+#include <gnuradio/io_signature.hpp>
+#include <gnuradio/tags.hpp>
+#include <gr_io_signature.h>
+#include <gr_block.h>
+#include <gr_top_block.h>
+#include <gr_hier_block2.h>
+#include <gr_message.h>
+#include <gr_msg_handler.h>
+#include <gr_msg_queue.h>
+#include <gr_sync_block.h>
+#include <gr_sync_decimator.h>
+#include <gr_sync_interpolator.h>
+
+%}
+
+%include <gr_message.i>
+%include <gr_msg_handler.i>
+%include <gr_msg_queue.i>
+%include <gr_swig_block_magic.i>
+
+#ifdef SW_RUNTIME
+
+%include "gras.i"
+
+#else
+
+//the bare minimum block inheritance interface to make things work but keep swig cxx file size down
+%include <gnuradio/element.hpp>
+namespace gnuradio
+{
+ struct Block : Element{};
+ struct HierBlock : Element{};
+}
+struct gr_hier_block2 : gnuradio::HierBlock{};
+struct gr_block : gnuradio::Block{};
+struct gr_sync_block : gr_block{};
+struct gr_sync_interpolator : gr_sync_block{};
+struct gr_sync_decimator : gr_sync_block{};
+
+#endif