diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-27 23:05:53 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-27 23:05:53 -0700 |
commit | 3a6187515677b277489df4ec59f9cf21f1ed62bc (patch) | |
tree | 0ff7e9b875886526c157d43174c2a8416d565be6 /host/utils | |
parent | 0ad65e551369d3242e941489d90c8d527be7c7ce (diff) | |
download | uhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.tar.gz uhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.tar.bz2 uhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.zip |
usrp2: restored discovery and most of io_impl
Diffstat (limited to 'host/utils')
-rw-r--r-- | host/utils/uhd_usrp_probe.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp index 3ea63c4bb..441f657d0 100644 --- a/host/utils/uhd_usrp_probe.cpp +++ b/host/utils/uhd_usrp_probe.cpp @@ -164,6 +164,15 @@ static std::string get_device_pp_string(device::sptr dev){ return ss.str(); } +#include <uhd/property_tree.hpp> + +void print_tree(const uhd::property_tree::path_type &path, uhd::property_tree::sptr tree){ + std::cout << path << std::endl; + BOOST_FOREACH(const std::string &name, tree->list(path)){ + print_tree(path / name, tree); + } +} + int UHD_SAFE_MAIN(int argc, char *argv[]){ po::options_description desc("Allowed options"); desc.add_options() @@ -183,7 +192,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ device::sptr dev = device::make(vm["args"].as<std::string>()); - std::cout << make_border(get_device_pp_string(dev)) << std::endl; + //std::cout << make_border(get_device_pp_string(dev)) << std::endl; + print_tree("/", (*dev)[0].as<uhd::property_tree::sptr>()); return 0; } |