diff options
author | Josh Blum <josh@joshknows.com> | 2010-02-05 11:36:17 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-02-05 11:36:17 -0800 |
commit | 89152d1ffe452438db46932ebc62d5ccc5b79208 (patch) | |
tree | 47c261e35669fbc8a5e0dd0a1a9db63bcd1a5964 /lib/usrp/mboard/test.cpp | |
parent | bff701727b268a87900b5f8445847a3920c23541 (diff) | |
download | uhd-89152d1ffe452438db46932ebc62d5ccc5b79208.tar.gz uhd-89152d1ffe452438db46932ebc62d5ccc5b79208.tar.bz2 uhd-89152d1ffe452438db46932ebc62d5ccc5b79208.zip |
Made get_link the only way to create nested props.
Removed the obj::ptr and sptr typedefs.
The dboard manager now must store not the subdevs, but their proxies.
Diffstat (limited to 'lib/usrp/mboard/test.cpp')
-rw-r--r-- | lib/usrp/mboard/test.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/usrp/mboard/test.cpp b/lib/usrp/mboard/test.cpp index 57482448c..b54d66408 100644 --- a/lib/usrp/mboard/test.cpp +++ b/lib/usrp/mboard/test.cpp @@ -140,9 +140,11 @@ void test::get(const wax::obj &key_, wax::obj &val){ if (_dboard_managers.count(name) == 0) throw std::invalid_argument( str(boost::format("Unknown rx dboard name %s") % name) ); - val = wax::obj::sptr( - new shell_dboard(_dboard_managers[name], shell_dboard::TYPE_RX) - ); + //FIXME store the shell dboard within the class + //may not fix, plan to remove this test class when real usrps work + //val = wax::obj::sptr( + // new shell_dboard(_dboard_managers[name], shell_dboard::TYPE_RX) + //); return; case MBOARD_PROP_RX_DBOARD_NAMES: @@ -153,9 +155,11 @@ void test::get(const wax::obj &key_, wax::obj &val){ if (_dboard_managers.count(name) == 0) throw std::invalid_argument( str(boost::format("Unknown tx dboard name %s") % name) ); - val = wax::obj::sptr( - new shell_dboard(_dboard_managers[name], shell_dboard::TYPE_TX) - ); + //FIXME store the shell dboard within the class + //may not fix, plan to remove this test class when real usrps work + //val = wax::obj::sptr( + // new shell_dboard(_dboard_managers[name], shell_dboard::TYPE_TX) + //); return; case MBOARD_PROP_TX_DBOARD_NAMES: |