summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/runtime/gr_block.cc
diff options
context:
space:
mode:
authorTom Rondeau2010-11-17 15:58:49 -0800
committerTom Rondeau2010-11-17 15:58:49 -0800
commit6d4393613a78417b91e67af33820748ad3483e61 (patch)
tree4b84a0bb485108df94004393a201da14d8cc7879 /gnuradio-core/src/lib/runtime/gr_block.cc
parent97b1f1aa7d646fbc1250158ec94fe49d0979809c (diff)
downloadgnuradio-6d4393613a78417b91e67af33820748ad3483e61.tar.gz
gnuradio-6d4393613a78417b91e67af33820748ad3483e61.tar.bz2
gnuradio-6d4393613a78417b91e67af33820748ad3483e61.zip
Changing get_tags API to take in a vector reference instead of returning a vector.
Diffstat (limited to 'gnuradio-core/src/lib/runtime/gr_block.cc')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_block.cc b/gnuradio-core/src/lib/runtime/gr_block.cc
index 778344769..52be37e3b 100644
--- a/gnuradio-core/src/lib/runtime/gr_block.cc
+++ b/gnuradio-core/src/lib/runtime/gr_block.cc
@@ -152,19 +152,21 @@ gr_block::add_item_tag(unsigned int which_output,
d_detail->add_item_tag(which_output, offset, key, value, srcid);
}
-std::vector<pmt::pmt_t>
-gr_block::get_tags_in_range(unsigned int which_output,
+void
+gr_block::get_tags_in_range(std::vector<pmt::pmt_t> &v,
+ unsigned int which_output,
uint64_t start, uint64_t end)
{
- return d_detail->get_tags_in_range(which_output, start, end);
+ d_detail->get_tags_in_range(v, which_output, start, end);
}
-std::vector<pmt::pmt_t>
-gr_block::get_tags_in_range(unsigned int which_output,
+void
+gr_block::get_tags_in_range(std::vector<pmt::pmt_t> &v,
+ unsigned int which_output,
uint64_t start, uint64_t end,
const pmt::pmt_t &key)
{
- return d_detail->get_tags_in_range(which_output, start, end, key);
+ d_detail->get_tags_in_range(v, which_output, start, end, key);
}
gr_block::TAG_PROPAGATION_POLICY