aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/property_tree_python.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-10-12 12:22:00 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2020-10-16 14:58:15 -0500
commit7ee106187e1d0991e7ae79abd905a79dc5760b5f (patch)
tree4cf445e5b170817692567120e8506e20f5afb878 /host/lib/property_tree_python.hpp
parent0167ad7608adb170970458b19735738808f0c5c8 (diff)
downloaduhd-7ee106187e1d0991e7ae79abd905a79dc5760b5f.tar.gz
uhd-7ee106187e1d0991e7ae79abd905a79dc5760b5f.tar.bz2
uhd-7ee106187e1d0991e7ae79abd905a79dc5760b5f.zip
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())
Diffstat (limited to 'host/lib/property_tree_python.hpp')
-rw-r--r--host/lib/property_tree_python.hpp11
1 files changed, 11 insertions, 0 deletions
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 <pybind11/pybind11.h>
+
+void export_property_tree(pybind11::module& m);