summaryrefslogtreecommitdiff
path: root/lib/top_block.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-03-06 02:39:51 -0600
committerJosh Blum2013-03-06 02:39:51 -0600
commit83d78cdcaefe18555e83dc7cc810422616054527 (patch)
tree8718ae0b697b0c46c6f2c90552627a87ca91cba6 /lib/top_block.cpp
parent9f7169ecd0c8349fc33ad933c9dc5f23ac538146 (diff)
downloadsandhi-83d78cdcaefe18555e83dc7cc810422616054527.tar.gz
sandhi-83d78cdcaefe18555e83dc7cc810422616054527.tar.bz2
sandhi-83d78cdcaefe18555e83dc7cc810422616054527.zip
gras: top block gets same config style as block
Diffstat (limited to 'lib/top_block.cpp')
-rw-r--r--lib/top_block.cpp6
1 files changed, 3 insertions, 3 deletions
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)