From 821269168806737f4d7b850debd639be0650eb08 Mon Sep 17 00:00:00 2001 From: michael-west Date: Fri, 7 Aug 2020 00:35:29 -0700 Subject: Python API: Add bindings for disconnect APIs Add Python bindings for recently added rfnoc_graph::disconnect() methods. Signed-off-by: michael-west --- host/lib/rfnoc/rfnoc_python.hpp | 7 +++++++ 1 file changed, 7 insertions(+) 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( + &rfnoc_graph::disconnect)) + .def( + "disconnect", py::overload_cast(&rfnoc_graph::disconnect)) + .def("disconnect", + py::overload_cast(&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) -- cgit v1.2.3