summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-07-20 14:13:37 -0700
committerJosh Blum <josh@joshknows.com>2011-07-20 14:13:37 -0700
commit9851de0713b4c6d14a870a1d8816451ca518ff52 (patch)
tree41d1ff8e4d4febd8babfb46a9779def2c2314a2b /host/include
parent117f6a3359a8a21acf396b0e0f084c32770e0b3a (diff)
downloaduhd-9851de0713b4c6d14a870a1d8816451ca518ff52.tar.gz
uhd-9851de0713b4c6d14a870a1d8816451ca518ff52.tar.bz2
uhd-9851de0713b4c6d14a870a1d8816451ca518ff52.zip
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.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/device.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/include/uhd/device.hpp b/host/include/uhd/device.hpp
index 50237472b..40969c29c 100644
--- a/host/include/uhd/device.hpp
+++ b/host/include/uhd/device.hpp
@@ -19,6 +19,7 @@
#define INCLUDED_UHD_DEVICE_HPP
#include <uhd/config.hpp>
+#include <uhd/property_tree.hpp>
#include <uhd/types/device_addr.hpp>
#include <uhd/types/metadata.hpp>
#include <uhd/types/io_type.hpp>
@@ -197,6 +198,9 @@ public:
async_metadata_t &async_metadata, double timeout = 0.1
) = 0;
+ //! Get access to the underlying property structure
+ virtual property_tree::sptr get_tree(void) const = 0;
+
};
} //namespace uhd