diff options
m--------- | gnuradio | 0 | ||||
-rw-r--r-- | include/gras/top_block.hpp | 6 | ||||
-rw-r--r-- | lib/top_block.cpp | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/gnuradio b/gnuradio -Subproject e0e4eafabfc61ff492a30ee05aceebbf9cb27bc +Subproject cb5ff01c491d4558a096fc1649b85283c36ccf9 diff --git a/include/gras/top_block.hpp b/include/gras/top_block.hpp index fc86e30..e288d95 100644 --- a/include/gras/top_block.hpp +++ b/include/gras/top_block.hpp @@ -37,10 +37,10 @@ struct GRAS_API TopBlock : HierBlock TopBlock(const std::string &name); //! Get the global block config settings - GlobalBlockConfig get_global_config(void) const; + const GlobalBlockConfig &global_config(void) const; - //! Set the global block config settings - void set_global_config(const GlobalBlockConfig &config); + //! Get the global block config settings + GlobalBlockConfig &global_config(void); /*! * Commit changes to the overall flow graph. diff --git a/lib/top_block.cpp b/lib/top_block.cpp index bfb0e85..fe06286 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -42,14 +42,14 @@ void ElementImpl::top_block_cleanup(void) << std::flush; } -GlobalBlockConfig TopBlock::get_global_config(void) const +const GlobalBlockConfig &TopBlock::global_config(void) const { return (*this)->top_config; } -void TopBlock::set_global_config(const GlobalBlockConfig &config) +GlobalBlockConfig &TopBlock::global_config(void) { - (*this)->top_config = config; + return (*this)->top_config; } void TopBlock::commit(void) |