From 7ee106187e1d0991e7ae79abd905a79dc5760b5f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 12 Oct 2020 12:22:00 +0200 Subject: python: Add access to the property_tree from Python Example: >>> usrp = uhd.usrp.multi_usrp("") >>> tree = usrp.get_tree() >>> print(tree.access_int("/name").get()) --- host/lib/property_tree_python.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 host/lib/property_tree_python.hpp (limited to 'host/lib/property_tree_python.hpp') diff --git a/host/lib/property_tree_python.hpp b/host/lib/property_tree_python.hpp new file mode 100644 index 000000000..c16dacfe3 --- /dev/null +++ b/host/lib/property_tree_python.hpp @@ -0,0 +1,11 @@ +// +// Copyright 2020 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#pragma once + +#include + +void export_property_tree(pybind11::module& m); -- cgit v1.2.3