diff options
author | Tom Rondeau | 2010-11-04 12:31:18 -0400 |
---|---|---|
committer | Tom Rondeau | 2010-11-04 12:31:18 -0400 |
commit | 779f498c46175bb12828c9db4643eada3e364b16 (patch) | |
tree | 58cff31f19280bdea5ea96feda5127c7e0e038eb /gnuradio-core/src/lib/runtime/gr_block.cc | |
parent | c3725a7269a7e96252a957b6d078686352365de6 (diff) | |
download | gnuradio-779f498c46175bb12828c9db4643eada3e364b16.tar.gz gnuradio-779f498c46175bb12828c9db4643eada3e364b16.tar.bz2 gnuradio-779f498c46175bb12828c9db4643eada3e364b16.zip |
Moves gr_block functions dealing with tags into protected space. Adds documentation to functions in header. Adds a "srcid" parameter to the add_item_tag function.
Diffstat (limited to 'gnuradio-core/src/lib/runtime/gr_block.cc')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_block.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_block.cc b/gnuradio-core/src/lib/runtime/gr_block.cc index 13035aa96..eb377953d 100644 --- a/gnuradio-core/src/lib/runtime/gr_block.cc +++ b/gnuradio-core/src/lib/runtime/gr_block.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004,2009 Free Software Foundation, Inc. + * Copyright 2004,2009,2010 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -144,19 +144,21 @@ gr_block::nitems_written(unsigned int which_output) void gr_block::add_item_tag(unsigned int which_output, gr_uint64 offset, - const pmt::pmt_t &key, const pmt::pmt_t &value) + const pmt::pmt_t &key, + const pmt::pmt_t &value, + const pmt::pmt_t &srcid) { - d_detail->add_item_tag(which_output, offset, key, value); + d_detail->add_item_tag(which_output, offset, key, value, srcid); } -std::list<pmt::pmt_t> +std::deque<pmt::pmt_t> gr_block::get_tags_in_range(unsigned int which_output, gr_uint64 start, gr_uint64 end) { return d_detail->get_tags_in_range(which_output, start, end); } -std::list<pmt::pmt_t> +std::deque<pmt::pmt_t> gr_block::get_tags_in_range(unsigned int which_output, gr_uint64 start, gr_uint64 end, const pmt::pmt_t &key) |