From 01eb527e0c1f445fab7c7cef039ba623e93f8c7c Mon Sep 17 00:00:00 2001 From: eb Date: Tue, 16 Jan 2007 17:57:28 +0000 Subject: fixed problem with gr_noise_source_* caused by splitting gnuradio_swig_python git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4280 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/general/Makefile.am | 1 - gnuradio-core/src/lib/general/general.i | 2 -- gnuradio-core/src/lib/general/gr_noise_type.h | 30 --------------------------- gnuradio-core/src/lib/gengen/Makefile.am | 1 + gnuradio-core/src/lib/gengen/gengen.i | 2 ++ gnuradio-core/src/lib/gengen/gr_noise_type.h | 30 +++++++++++++++++++++++++++ 6 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 gnuradio-core/src/lib/general/gr_noise_type.h create mode 100644 gnuradio-core/src/lib/gengen/gr_noise_type.h (limited to 'gnuradio-core/src') diff --git a/gnuradio-core/src/lib/general/Makefile.am b/gnuradio-core/src/lib/general/Makefile.am index 30f6ba1db..3014ee05b 100644 --- a/gnuradio-core/src/lib/general/Makefile.am +++ b/gnuradio-core/src/lib/general/Makefile.am @@ -210,7 +210,6 @@ grinclude_HEADERS = \ gr_misc.h \ gr_nco.h \ gr_nlog10_ff.h \ - gr_noise_type.h \ gr_nop.h \ gr_null_sink.h \ gr_null_source.h \ diff --git a/gnuradio-core/src/lib/general/general.i b/gnuradio-core/src/lib/general/general.i index 1bf752998..fe3ccacdf 100644 --- a/gnuradio-core/src/lib/general/general.i +++ b/gnuradio-core/src/lib/general/general.i @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include @@ -117,7 +116,6 @@ %include "gr_null_source.i" %include "gr_head.i" %include "gr_skiphead.i" -%include "gr_noise_type.h" %include "gr_quadrature_demod_cf.i" %include "gr_remez.i" %include "gr_float_to_complex.i" diff --git a/gnuradio-core/src/lib/general/gr_noise_type.h b/gnuradio-core/src/lib/general/gr_noise_type.h deleted file mode 100644 index d04b7cafc..000000000 --- a/gnuradio-core/src/lib/general/gr_noise_type.h +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2004 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * GNU Radio is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * GNU Radio is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Radio; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, - * Boston, MA 02110-1301, USA. - */ - -#ifndef INCLUDED_GR_NOISE_TYPE_H -#define INCLUDED_GR_NOISE_TYPE_H - -typedef enum { - GR_UNIFORM = 200, GR_GAUSSIAN, GR_LAPLACIAN, GR_IMPULSE -} gr_noise_type_t; - -#endif /* INCLUDED_GR_NOISE_TYPE_H */ diff --git a/gnuradio-core/src/lib/gengen/Makefile.am b/gnuradio-core/src/lib/gengen/Makefile.am index d5074634a..a338e39b7 100644 --- a/gnuradio-core/src/lib/gengen/Makefile.am +++ b/gnuradio-core/src/lib/gengen/Makefile.am @@ -110,6 +110,7 @@ libgengen_la_SOURCES = \ grinclude_HEADERS = \ $(GENERATED_H) \ gr_endianness.h \ + gr_noise_type.h \ gr_sig_source_waveform.h noinst_HEADERS = diff --git a/gnuradio-core/src/lib/gengen/gengen.i b/gnuradio-core/src/lib/gengen/gengen.i index 4047e430a..420b8ef5e 100644 --- a/gnuradio-core/src/lib/gengen/gengen.i +++ b/gnuradio-core/src/lib/gengen/gengen.i @@ -1,9 +1,11 @@ %{ #include "gr_endianness.h" #include "gr_sig_source_waveform.h" +#include "gr_noise_type.h" %} %include "gr_endianness.i" %include "gr_sig_source_waveform.h" +%include "gr_noise_type.h" %include "gengen_generated.i" diff --git a/gnuradio-core/src/lib/gengen/gr_noise_type.h b/gnuradio-core/src/lib/gengen/gr_noise_type.h new file mode 100644 index 000000000..d04b7cafc --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_noise_type.h @@ -0,0 +1,30 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +#ifndef INCLUDED_GR_NOISE_TYPE_H +#define INCLUDED_GR_NOISE_TYPE_H + +typedef enum { + GR_UNIFORM = 200, GR_GAUSSIAN, GR_LAPLACIAN, GR_IMPULSE +} gr_noise_type_t; + +#endif /* INCLUDED_GR_NOISE_TYPE_H */ -- cgit