X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=gnuradio-core%2Fsrc%2Flib%2Fswig%2Fgnuradio.i;h=7d0241f1c237f22eccb83808cf4de7dc6c562e54;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=f3d38c1de6a8521c52b3f41ba920f4409b589d26;hpb=09a1e803a9e6587c78d20cdf16891e5295874668;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/lib/swig/gnuradio.i b/gnuradio-core/src/lib/swig/gnuradio.i index f3d38c1d..7d0241f1 100644 --- a/gnuradio-core/src/lib/swig/gnuradio.i +++ b/gnuradio-core/src/lib/swig/gnuradio.i @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2003,2004 Free Software Foundation, Inc. + * Copyright 2003,2004,2009 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -25,27 +25,24 @@ // SWIG interface definition //////////////////////////////////////////////////////////////////////// - -#ifndef SWIGIMPORTED -// we set the module name on the command line (not any more) -%module(directors="1") gnuradio_swig_python -#endif - //////////////////////////////////////////////////////////////////////// // Headers - %{ +#include "gnuradio_swig_bug_workaround.h" // mandatory bug fix #include #include // size_t %} %feature("autodoc","1"); -%include +// local file +%include + +// non-local SWIG files %include %include - +%include typedef std::complex gr_complex; typedef std::complex gr_complexd; @@ -60,7 +57,15 @@ namespace std { %template() vector; %template() vector; %template() vector; - %template() vector >; + + %template() vector< std::complex >; + %template() vector< std::vector< unsigned char > >; + %template() vector< std::vector< char > >; + %template() vector< std::vector< short > >; + %template() vector< std::vector< int > >; + %template() vector< std::vector< float > >; + %template() vector< std::vector< double > >; + %template() vector< std::vector< std::complex > >; }; //////////////////////////////////////////////////////////////////////// @@ -74,11 +79,9 @@ namespace std { //////////////////////////////////////////////////////////////////////// -%include -%include -%include -%include - -// %include +#ifndef SW_RUNTIME +// import runtime.i for all but sw_runtime, since it needs to %include +%import +#endif ////////////////////////////////////////////////////////////////////////