diff options
author | Johnathan Corgan | 2009-11-03 09:52:44 -0800 |
---|---|---|
committer | Johnathan Corgan | 2009-11-03 09:56:27 -0800 |
commit | 924efcb372cabb6d5217d2d7f931302339fa0417 (patch) | |
tree | ea6a851a8b10e28ab3a4da4f7223b78902a3734f /gr-howto-write-a-block/swig/howto.i | |
parent | 6d25197ffc623d113274a8c79a2fa4fa4244f10f (diff) | |
download | gnuradio-924efcb372cabb6d5217d2d7f931302339fa0417.tar.gz gnuradio-924efcb372cabb6d5217d2d7f931302339fa0417.tar.bz2 gnuradio-924efcb372cabb6d5217d2d7f931302339fa0417.zip |
howto: reorganized directory structure
Moved lib to top level
Moved python to top level
Separated swig generation into new top level directory
Diffstat (limited to 'gr-howto-write-a-block/swig/howto.i')
-rw-r--r-- | gr-howto-write-a-block/swig/howto.i | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gr-howto-write-a-block/swig/howto.i b/gr-howto-write-a-block/swig/howto.i new file mode 100644 index 000000000..c3dae9dfc --- /dev/null +++ b/gr-howto-write-a-block/swig/howto.i @@ -0,0 +1,39 @@ +/* -*- c++ -*- */ + +%include "gnuradio.i" // the common stuff + +%{ +#include "howto_square_ff.h" +#include "howto_square2_ff.h" +%} + +// ---------------------------------------------------------------- + +/* + * First arg is the package prefix. + * Second arg is the name of the class minus the prefix. + * + * This does some behind-the-scenes magic so we can + * access howto_square_ff from python as howto.square_ff + */ +GR_SWIG_BLOCK_MAGIC(howto,square_ff); + +howto_square_ff_sptr howto_make_square_ff (); + +class howto_square_ff : public gr_block +{ +private: + howto_square_ff (); +}; + +// ---------------------------------------------------------------- + +GR_SWIG_BLOCK_MAGIC(howto,square2_ff); + +howto_square2_ff_sptr howto_make_square2_ff (); + +class howto_square2_ff : public gr_sync_block +{ +private: + howto_square2_ff (); +}; |