From 3a6187515677b277489df4ec59f9cf21f1ed62bc Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 27 Jun 2011 23:05:53 -0700 Subject: usrp2: restored discovery and most of io_impl --- host/utils/uhd_usrp_probe.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'host/utils') 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 + +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::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()); return 0; } -- cgit v1.2.3