From 9851de0713b4c6d14a870a1d8816451ca518ff52 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 20 Jul 2011 14:13:37 -0700 Subject: uhd: add get_tree call directly to the device Does away with the need for wax cast to get the tree. You can still do this but it will eventually be removed. There was some compiler issue on ubuntu 10.04 with any cast and a shared ptr to property tree. --- host/lib/usrp/usrp2/usrp2_impl.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib/usrp/usrp2') diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index 644eab824..cdbcc895f 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -117,6 +117,9 @@ private: void get(const wax::obj &, wax::obj &val){ val = _tree; //entry point into property tree } + uhd::property_tree::sptr get_tree(void) const{ + return _tree; + } //io impl methods and members uhd::otw_type_t _rx_otw_type, _tx_otw_type; -- cgit v1.2.3