diff options
author | Josh Blum | 2012-11-13 20:52:53 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-13 20:52:53 -0800 |
commit | 8b714226a0c73ccb458707126d73bae752186db6 (patch) | |
tree | a2d70316dd0cfe319ee75e8bae63924c9b86a6ff /lib/block.cpp | |
parent | e6c5ccd5190917adcb3518add8a2dc7599bd86f1 (diff) | |
download | sandhi-8b714226a0c73ccb458707126d73bae752186db6.tar.gz sandhi-8b714226a0c73ccb458707126d73bae752186db6.tar.bz2 sandhi-8b714226a0c73ccb458707126d73bae752186db6.zip |
created API for passive work-flow
Diffstat (limited to 'lib/block.cpp')
-rw-r--r-- | lib/block.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/block.cpp b/lib/block.cpp index ee7142c..039daf3 100644 --- a/lib/block.cpp +++ b/lib/block.cpp @@ -167,3 +167,13 @@ void Block::mark_done(void) { (*this)->block->mark_done(); } + +const SBuffer &Block::get_input_buffer(const size_t which_input) +{ + return (*this)->block->input_queues.front(which_input); +} + +void Block::post_output_buffer(const size_t which_output, const SBuffer &buffer) +{ + (*this)->block->produce_buffer(which_output, buffer); +} |