2013-12-10 00:47:21 +00:00
|
|
|
/* -*- c++ -*- */
|
|
|
|
|
2015-09-20 00:31:41 +00:00
|
|
|
%include "pycontainer.swg"
|
|
|
|
|
2013-12-10 00:47:21 +00:00
|
|
|
#define OP25_API
|
|
|
|
|
|
|
|
%include "gnuradio.i" // the common stuff
|
|
|
|
|
|
|
|
//load generated python docstrings
|
|
|
|
%include "op25_swig_doc.i"
|
|
|
|
|
|
|
|
%{
|
|
|
|
#include "op25/fsk4_demod_ff.h"
|
|
|
|
#include "op25/fsk4_slicer_fb.h"
|
|
|
|
#include "op25/decoder_ff.h"
|
|
|
|
#include "op25/decoder_bf.h"
|
|
|
|
#include "op25/pcap_source_b.h"
|
|
|
|
%}
|
|
|
|
|
2015-09-20 00:31:41 +00:00
|
|
|
%template(key_type) std::vector<unsigned char>;
|
|
|
|
// This causes SWIG to segfault
|
|
|
|
//%template(key_map_type) std::map<uint16_t,key_type >;
|
|
|
|
%template(key_map_type) std::map<uint16_t,std::vector<unsigned char> >;
|
|
|
|
|
2013-12-10 00:47:21 +00:00
|
|
|
%include "op25/fsk4_demod_ff.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(op25, fsk4_demod_ff);
|
|
|
|
%include "op25/fsk4_slicer_fb.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(op25, fsk4_slicer_fb);
|
|
|
|
%include "op25/decoder_ff.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(op25, decoder_ff);
|
|
|
|
%include "op25/decoder_bf.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(op25, decoder_bf);
|
|
|
|
%include "op25/pcap_source_b.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(op25, pcap_source_b);
|