diff options
author | michael-west <michael.west@ettus.com> | 2020-08-07 00:35:29 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-08-07 07:43:58 -0500 |
commit | 821269168806737f4d7b850debd639be0650eb08 (patch) | |
tree | 942d937ad78d3f4771c76a6f4f6e05cf0858ef87 | |
parent | 3a2a3610c243450cff31151b402039d0403699ab (diff) | |
download | uhd-821269168806737f4d7b850debd639be0650eb08.tar.gz uhd-821269168806737f4d7b850debd639be0650eb08.tar.bz2 uhd-821269168806737f4d7b850debd639be0650eb08.zip |
Python API: Add bindings for disconnect APIs
Add Python bindings for recently added rfnoc_graph::disconnect()
methods.
Signed-off-by: michael-west <michael.west@ettus.com>
-rw-r--r-- | host/lib/rfnoc/rfnoc_python.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/rfnoc/rfnoc_python.hpp b/host/lib/rfnoc/rfnoc_python.hpp index b0809a8b6..d9c88fa9a 100644 --- a/host/lib/rfnoc/rfnoc_python.hpp +++ b/host/lib/rfnoc/rfnoc_python.hpp @@ -201,6 +201,13 @@ void export_rfnoc(py::module& m) py::arg("streamer"), py::arg("strm_port"), py::arg("adapter_id") = uhd::transport::NULL_ADAPTER_ID) + .def("disconnect", + py::overload_cast<const block_id_t&, size_t, const block_id_t&, size_t>( + &rfnoc_graph::disconnect)) + .def( + "disconnect", py::overload_cast<const std::string&>(&rfnoc_graph::disconnect)) + .def("disconnect", + py::overload_cast<const std::string&, size_t>(&rfnoc_graph::disconnect)) .def("enumerate_adapters_from_src", &rfnoc_graph::enumerate_adapters_from_src) .def("enumerate_adapters_to_dst", &rfnoc_graph::enumerate_adapters_to_dst) .def("enumerate_static_connections", &rfnoc_graph::enumerate_static_connections) |