2012-04-06 13:29:14 +00:00
|
|
|
/* -*- c++ -*- */
|
|
|
|
|
|
|
|
#define OSMOSDR_API
|
|
|
|
|
2012-05-20 10:30:28 +00:00
|
|
|
// suppress Warning 319: No access specifier given for base class 'boost::noncopyable' (ignored).
|
|
|
|
#pragma SWIG nowarn=319
|
|
|
|
|
2012-04-06 13:29:14 +00:00
|
|
|
%include "gnuradio.i" // the common stuff
|
|
|
|
|
|
|
|
//load generated python docstrings
|
|
|
|
%include "osmosdr_swig_doc.i"
|
|
|
|
|
|
|
|
%{
|
2012-05-20 10:30:28 +00:00
|
|
|
#include "osmosdr_device.h"
|
2012-04-06 13:29:14 +00:00
|
|
|
#include "osmosdr_source_c.h"
|
2012-04-12 18:24:05 +00:00
|
|
|
//#include "osmosdr_sink_c.h"
|
2012-04-06 13:29:14 +00:00
|
|
|
%}
|
|
|
|
|
2012-08-05 19:46:36 +00:00
|
|
|
%template(string_vector_t) std::vector<std::string>;
|
|
|
|
|
|
|
|
%template(size_vector_t) std::vector<size_t>;
|
|
|
|
|
|
|
|
%include <osmosdr_pimpl.h>
|
|
|
|
|
|
|
|
%ignore osmosdr::device_t::operator[]; //ignore warnings about %extend
|
|
|
|
|
|
|
|
%template(string_string_dict_t) std::map<std::string, std::string>; //define before device
|
2012-08-06 13:18:57 +00:00
|
|
|
%template(devices_t)std::vector<osmosdr::device_t>;
|
2012-08-05 19:46:36 +00:00
|
|
|
%include <osmosdr_device.h>
|
|
|
|
|
|
|
|
%template(range_vector_t) std::vector<osmosdr::range_t>; //define before range
|
|
|
|
%include <osmosdr_ranges.h>
|
|
|
|
|
2012-04-06 13:29:14 +00:00
|
|
|
GR_SWIG_BLOCK_MAGIC(osmosdr,source_c);
|
|
|
|
%include "osmosdr_source_c.h"
|
|
|
|
|
2012-04-12 18:24:05 +00:00
|
|
|
//GR_SWIG_BLOCK_MAGIC(osmosdr,sink_c);
|
|
|
|
//%include "osmosdr_sink_c.h"
|
2012-04-06 13:29:14 +00:00
|
|
|
|
|
|
|
#if SWIGGUILE
|
|
|
|
%scheme %{
|
|
|
|
(load-extension-global "libguile-gnuradio-osmosdr_swig" "scm_init_gnuradio_osmosdr_swig_module")
|
|
|
|
%}
|
|
|
|
|
|
|
|
%goops %{
|
|
|
|
(use-modules (gnuradio gnuradio_core_runtime))
|
|
|
|
%}
|
|
|
|
#endif
|