From c1e26b4a260d6f9210f3c31b9f7311be833e8cad Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 3 Feb 2022 14:32:43 +0100 Subject: uhd: rfnoc: Let connect_through_blocks() return edge list This changes the return value of connect_through_blocks() from void to a list of edges. If the connection can be made, then it will now return the list of connections between the source block and port. --- host/lib/utils/graph_utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib/utils') diff --git a/host/lib/utils/graph_utils.cpp b/host/lib/utils/graph_utils.cpp index 513f7b709..89df30e15 100644 --- a/host/lib/utils/graph_utils.cpp +++ b/host/lib/utils/graph_utils.cpp @@ -83,7 +83,7 @@ std::vector get_block_chain(const rfnoc_graph::sptr graph, } -void connect_through_blocks(rfnoc_graph::sptr graph, +std::vector connect_through_blocks(rfnoc_graph::sptr graph, const block_id_t src_blk, const size_t src_port, const block_id_t dst_blk, @@ -159,6 +159,7 @@ void connect_through_blocks(rfnoc_graph::sptr graph, UHD_LOG_TRACE("GRAPH_UTILS", err_msg); throw uhd::runtime_error("[graph_utils] " + err_msg); } + return block_chain; } }} // namespace uhd::rfnoc -- cgit v1.2.3