summaryrefslogtreecommitdiffstats
path: root/host/lib/property_tree.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-27 23:05:53 -0700
committerJosh Blum <josh@joshknows.com>2011-06-27 23:05:53 -0700
commit3a6187515677b277489df4ec59f9cf21f1ed62bc (patch)
tree0ff7e9b875886526c157d43174c2a8416d565be6 /host/lib/property_tree.cpp
parent0ad65e551369d3242e941489d90c8d527be7c7ce (diff)
downloaduhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.tar.gz
uhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.tar.bz2
uhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.zip
usrp2: restored discovery and most of io_impl
Diffstat (limited to 'host/lib/property_tree.cpp')
-rw-r--r--host/lib/property_tree.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/host/lib/property_tree.cpp b/host/lib/property_tree.cpp
index 7cda7a524..4fbdbad12 100644
--- a/host/lib/property_tree.cpp
+++ b/host/lib/property_tree.cpp
@@ -49,7 +49,7 @@ public:
return true;
}
- iterator_type iterate(const path_type &path){
+ std::vector<std::string> list(const path_type &path){
boost::mutex::scoped_lock lock(_mutex);
node_type *node = &_root;
@@ -58,11 +58,7 @@ public:
node = &(*node)[leaf];
}
- iterator_type iter;
- BOOST_FOREACH(const std::string &name, node->keys()){
- iter.push_back(name);
- }
- return iter;
+ return node->keys();
}
void _create(const path_type &path, const boost::any &prop){