summaryrefslogtreecommitdiffstats
path: root/swig/fosphor_swig.i
blob: 064ab9b57330487e6f9a853c44df0e06d9bab777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* -*- c++ -*- */

#define GR_FOSPHOR_API

%include "gnuradio.i"			// the common stuff

//load generated python docstrings
%include "fosphor_swig_doc.i"

%{
#include "gnuradio/fosphor/glfw_sink_c.h"
#include "gnuradio/fosphor/qt_sink_c.h"
#include "gnuradio/fosphor/wx_core_sink_c.h"
%}

%typemap(in) gr::fft::window::win_type {
        $1 = (gr::fft::window::win_type)(PyInt_AsLong($input));
}

%include "gnuradio/fosphor/base_sink_c.h"

#ifdef ENABLE_GLFW
%nodefaultctor gr::fosphor::glfw_sink_c;        // bug workaround
%include "gnuradio/fosphor/glfw_sink_c.h"
GR_SWIG_BLOCK_MAGIC2(fosphor, glfw_sink_c);
#endif

#ifdef ENABLE_QT
%include "gnuradio/fosphor/qt_sink_c.h"
GR_SWIG_BLOCK_MAGIC2(fosphor, qt_sink_c);
#endif

#ifdef ENABLE_WX
%include "gnuradio/fosphor/wx_core_sink_c.h"
GR_SWIG_BLOCK_MAGIC2(fosphor, wx_core_sink_c);
#endif