Houston, we have a trunk.
[debian/gnuradio] / gr-howto-write-a-block / doc / howto_1.i
1 /* -*- c++ -*- */
2
3 %include "exception.i"
4 %import "gnuradio.i"                            // the common stuff
5
6 %{
7 #include "gnuradio_swig_bug_workaround.h"       // mandatory bug fix
8 #include "howto_square_ff.h"
9 #include <stdexcept>
10 %}
11
12 // ----------------------------------------------------------------
13
14 /*
15  * First arg is the package prefix.
16  * Second arg is the name of the class minus the prefix.
17  *
18  * This does some behind-the-scenes magic so we can
19  * access howto_square_ff from python as howto.square_ff
20  */
21 GR_SWIG_BLOCK_MAGIC(howto,square_ff);
22
23 howto_square_ff_sptr howto_make_square_ff ();
24
25 class howto_square_ff : public gr_block
26 {
27 private:
28   howto_square_ff ();
29 };