summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block-cmake/swig/howto_swig.i
diff options
context:
space:
mode:
authorJosh Blum2011-10-18 17:40:11 -0700
committerJosh Blum2011-10-18 17:40:11 -0700
commit4dba84e382b961700959c3c044a7b42a04be040e (patch)
tree4172ed8c8ba14b72f90c888e4a45b3851618efb4 /gr-howto-write-a-block-cmake/swig/howto_swig.i
parent48cf49a0bab1e8e8d80a1c4161f451e575190e1e (diff)
downloadgnuradio-4dba84e382b961700959c3c044a7b42a04be040e.tar.gz
gnuradio-4dba84e382b961700959c3c044a7b42a04be040e.tar.bz2
gnuradio-4dba84e382b961700959c3c044a7b42a04be040e.zip
howto: changes as per tom's suggestions
Diffstat (limited to 'gr-howto-write-a-block-cmake/swig/howto_swig.i')
-rw-r--r--gr-howto-write-a-block-cmake/swig/howto_swig.i9
1 files changed, 7 insertions, 2 deletions
diff --git a/gr-howto-write-a-block-cmake/swig/howto_swig.i b/gr-howto-write-a-block-cmake/swig/howto_swig.i
index d0bbcdc11..52100057c 100644
--- a/gr-howto-write-a-block-cmake/swig/howto_swig.i
+++ b/gr-howto-write-a-block-cmake/swig/howto_swig.i
@@ -1,5 +1,7 @@
/* -*- c++ -*- */
+#define HOWTO_API
+
%include "gnuradio.i" // the common stuff
%{
@@ -7,8 +9,11 @@
#include "howto_square2_ff.h"
%}
-%include "howto_square_ff.i"
-%include "howto_square2_ff.i"
+GR_SWIG_BLOCK_MAGIC(howto,square_ff);
+%include "howto_square_ff.h"
+
+GR_SWIG_BLOCK_MAGIC(howto,square2_ff);
+%include "howto_square2_ff.h"
#if SWIGGUILE
%scheme %{