diff options
author | Eric Blossom | 2010-11-14 11:56:18 -0800 |
---|---|---|
committer | Eric Blossom | 2010-11-14 11:56:18 -0800 |
commit | ababbe79dba97b1c88e5dec7eb28175c3574d015 (patch) | |
tree | 635a55a5a32b59df30a0e05bcaafcd54ab7dd306 /gnuradio-core/src/lib/general/gr_nop.h | |
parent | b7667afd81b8303a542204ac05ffa969519702af (diff) | |
download | gnuradio-ababbe79dba97b1c88e5dec7eb28175c3574d015.tar.gz gnuradio-ababbe79dba97b1c88e5dec7eb28175c3574d015.tar.bz2 gnuradio-ababbe79dba97b1c88e5dec7eb28175c3574d015.zip |
Update gr_nop, gr_null_sink and gr_null_source to modern coding conventions.
Diffstat (limited to 'gnuradio-core/src/lib/general/gr_nop.h')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_nop.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gnuradio-core/src/lib/general/gr_nop.h b/gnuradio-core/src/lib/general/gr_nop.h index 60b20c5ab..4f18c9183 100644 --- a/gnuradio-core/src/lib/general/gr_nop.h +++ b/gnuradio-core/src/lib/general/gr_nop.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004 Free Software Foundation, Inc. + * Copyright 2004,2010 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -26,14 +26,19 @@ #include <gr_block.h> #include <stddef.h> // size_t +class gr_nop; +typedef boost::shared_ptr<gr_nop> gr_nop_sptr; + +gr_nop_sptr +gr_make_nop (size_t sizeof_stream_item); + /*! * \brief Does nothing. Used for testing only. * \ingroup misc_blk */ class gr_nop : public gr_block { - friend gr_block_sptr gr_make_nop (size_t sizeof_stream_item); - + friend gr_nop_sptr gr_make_nop (size_t sizeof_stream_item); gr_nop (size_t sizeof_stream_item); public: @@ -43,7 +48,4 @@ class gr_nop : public gr_block gr_vector_void_star &output_items); }; -gr_block_sptr -gr_make_nop (size_t sizeof_stream_item); - #endif /* INCLUDED_GR_NOP_H */ |