Houston, we have a trunk.
[debian/gnuradio] / gr-howto-write-a-block / src / lib / howto.i
1 /* -*- c++ -*- */
2
3 %feature("autodoc", "1");               // generate python docstrings
4
5 %include "exception.i"
6 %import "gnuradio.i"                    // the common stuff
7
8 %{
9 #include "gnuradio_swig_bug_workaround.h"       // mandatory bug fix
10 #include "howto_square_ff.h"
11 #include "howto_square2_ff.h"
12 #include <stdexcept>
13 %}
14
15 // ----------------------------------------------------------------
16
17 /*
18  * First arg is the package prefix.
19  * Second arg is the name of the class minus the prefix.
20  *
21  * This does some behind-the-scenes magic so we can
22  * access howto_square_ff from python as howto.square_ff
23  */
24 GR_SWIG_BLOCK_MAGIC(howto,square_ff);
25
26 howto_square_ff_sptr howto_make_square_ff ();
27
28 class howto_square_ff : public gr_block
29 {
30 private:
31   howto_square_ff ();
32 };
33
34 // ----------------------------------------------------------------
35
36 GR_SWIG_BLOCK_MAGIC(howto,square2_ff);
37
38 howto_square2_ff_sptr howto_make_square2_ff ();
39
40 class howto_square2_ff : public gr_sync_block
41 {
42 private:
43   howto_square2_ff ();
44 };