diff options
author | Josh Blum | 2012-11-23 23:06:07 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-23 23:06:07 -0800 |
commit | ccfc4200547605b71a5b65ea9ab86fa45a34dc7b (patch) | |
tree | 918f8d9d203483bb1cc3cdde7863ab25e268f245 /lib/block.cpp | |
parent | a61975949f3c6e7ddc26b802c56c639b52c46604 (diff) | |
download | sandhi-ccfc4200547605b71a5b65ea9ab86fa45a34dc7b.tar.gz sandhi-ccfc4200547605b71a5b65ea9ab86fa45a34dc7b.tar.bz2 sandhi-ccfc4200547605b71a5b65ea9ab86fa45a34dc7b.zip |
grant same API access to output buffer
Diffstat (limited to 'lib/block.cpp')
-rw-r--r-- | lib/block.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/block.cpp b/lib/block.cpp index a4e2780..0521490 100644 --- a/lib/block.cpp +++ b/lib/block.cpp @@ -198,11 +198,16 @@ void Block::mark_done(void) (*this)->block->mark_done(); } -const SBuffer &Block::get_input_buffer(const size_t which_input) +const SBuffer &Block::get_input_buffer(const size_t which_input) const { return (*this)->block->input_queues.front(which_input); } +const SBuffer &Block::get_output_buffer(const size_t which_output) const +{ + return (*this)->block->output_queues.front(which_output); +} + void Block::post_output_buffer(const size_t which_output, const SBuffer &buffer) { (*this)->block->produce_buffer(which_output, buffer); |