~ubuntu-branches/ubuntu/precise/gnuradio/precise

« back to all changes in this revision

Viewing changes to gnuradio-core/src/lib/swig/gnuradio.i

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- c++ -*- */
2
2
/*
3
 
 * Copyright 2003,2004 Free Software Foundation, Inc.
 
3
 * Copyright 2003,2004,2009 Free Software Foundation, Inc.
4
4
 * 
5
5
 * This file is part of GNU Radio
6
6
 * 
25
25
// SWIG interface definition
26
26
////////////////////////////////////////////////////////////////////////
27
27
 
28
 
 
29
 
#ifndef SWIGIMPORTED
30
 
// we set the module name on the command line (not any more)
31
 
%module(directors="1") gnuradio_swig_python
32
 
#endif
33
 
 
34
28
////////////////////////////////////////////////////////////////////////
35
29
// Headers
36
30
 
37
 
 
38
31
%{
 
32
#include "gnuradio_swig_bug_workaround.h"       // mandatory bug fix
39
33
#include <gr_types.h>
40
34
#include <stddef.h>             // size_t
41
35
%}
42
36
 
43
37
%feature("autodoc","1");
44
38
 
45
 
%include <shared_ptr.i>
 
39
// local file
 
40
%include <gr_shared_ptr.i>
 
41
 
 
42
// non-local SWIG files
46
43
%include <stl.i>
47
44
%include <std_complex.i>
48
 
 
 
45
%include <std_except.i>
49
46
 
50
47
typedef std::complex<float>             gr_complex;
51
48
typedef std::complex<double>            gr_complexd;
60
57
  %template()     vector<int>;
61
58
  %template()     vector<float>;
62
59
  %template()     vector<double>;
63
 
  %template()     vector<std::complex<float> >;
 
60
 
 
61
  %template()     vector< std::complex<float> >;
 
62
  %template()     vector< std::vector< unsigned char > >;
 
63
  %template()     vector< std::vector< char > >;
 
64
  %template()     vector< std::vector< short > >;
 
65
  %template()     vector< std::vector< int > >;
 
66
  %template()     vector< std::vector< float > >;
 
67
  %template()     vector< std::vector< double > >;
 
68
  %template()     vector< std::vector< std::complex<float> > >;
64
69
};
65
70
 
66
71
////////////////////////////////////////////////////////////////////////
74
79
 
75
80
////////////////////////////////////////////////////////////////////////
76
81
 
77
 
%include <runtime.i>
78
 
%include <general.i>
79
 
%include <filter.i>
80
 
%include <io.i>
81
 
 
82
 
// %include <atsc.i>
 
82
#ifndef SW_RUNTIME
 
83
// import runtime.i for all but sw_runtime, since it needs to %include
 
84
%import <runtime.i>
 
85
#endif
83
86
 
84
87
////////////////////////////////////////////////////////////////////////