Statistics
| Branch: | Tag: | Revision:

root / gr-howto-write-a-block / src / lib / howto.i @ 7783dc88

History | View | Annotate | Download (815 Bytes)

1
/* -*- c++ -*- */
2
3
%include "gnuradio.i"			// the common stuff
4
5
%{
6
#include "howto_square_ff.h"
7
#include "howto_square2_ff.h"
8
%}
9
10
// ----------------------------------------------------------------
11
12
/*
13
 * First arg is the package prefix.
14
 * Second arg is the name of the class minus the prefix.
15
 *
16
 * This does some behind-the-scenes magic so we can
17
 * access howto_square_ff from python as howto.square_ff
18
 */
19
GR_SWIG_BLOCK_MAGIC(howto,square_ff);
20
21
howto_square_ff_sptr howto_make_square_ff ();
22
23
class howto_square_ff : public gr_block
24
{
25
private:
26
  howto_square_ff ();
27
};
28
29
// ----------------------------------------------------------------
30
31
GR_SWIG_BLOCK_MAGIC(howto,square2_ff);
32
33
howto_square2_ff_sptr howto_make_square2_ff ();
34
35
class howto_square2_ff : public gr_sync_block
36
{
37
private:
38
  howto_square2_ff ();
39
};