summaryrefslogtreecommitdiff
path: root/include/gnuradio
diff options
context:
space:
mode:
authorJosh Blum2012-10-04 21:15:11 -0700
committerJosh Blum2012-10-04 21:15:11 -0700
commit709f8e97cc642e446d357612a6d6512d5a4c5330 (patch)
tree203a53e63fca96fe9e9a72d3fe386102d817b8d2 /include/gnuradio
parent3600e927bf31ca46bb99ef2df83512112fa6a8b2 (diff)
downloadsandhi-709f8e97cc642e446d357612a6d6512d5a4c5330.tar.gz
sandhi-709f8e97cc642e446d357612a6d6512d5a4c5330.tar.bz2
sandhi-709f8e97cc642e446d357612a6d6512d5a4c5330.zip
implementation for the top block global config
Diffstat (limited to 'include/gnuradio')
-rw-r--r--include/gnuradio/gr_top_block.h12
-rw-r--r--include/gnuradio/top_block.hpp2
2 files changed, 12 insertions, 2 deletions
diff --git a/include/gnuradio/gr_top_block.h b/include/gnuradio/gr_top_block.h
index 3a56bf6..0fa5496 100644
--- a/include/gnuradio/gr_top_block.h
+++ b/include/gnuradio/gr_top_block.h
@@ -34,7 +34,12 @@ struct GRAS_API gr_top_block : gnuradio::TopBlock
void unlock(void)
{
- this->update();
+ this->commit();
+ }
+
+ void start(void)
+ {
+ gnuradio::TopBlock::start();
}
void start(const size_t max_items)
@@ -43,6 +48,11 @@ struct GRAS_API gr_top_block : gnuradio::TopBlock
gnuradio::TopBlock::start();
}
+ void run(void)
+ {
+ gnuradio::TopBlock::run();
+ }
+
void run(const size_t max_items)
{
this->set_max_noutput_items(max_items);
diff --git a/include/gnuradio/top_block.hpp b/include/gnuradio/top_block.hpp
index bab67ee..19daafc 100644
--- a/include/gnuradio/top_block.hpp
+++ b/include/gnuradio/top_block.hpp
@@ -42,7 +42,7 @@ struct GRAS_API TopBlock : HierBlock
TopBlock(const std::string &name);
//! Get the global block config settings
- const GlobalBlockConfig &global_config(void) const;
+ GlobalBlockConfig global_config(void) const;
//! Set the global block config settings
void set_global_config(const GlobalBlockConfig &config);