diff options
author | Martin Braun <martin.braun@ettus.com> | 2022-02-03 14:32:43 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-02-04 13:13:59 -0600 |
commit | c1e26b4a260d6f9210f3c31b9f7311be833e8cad (patch) | |
tree | d00190a041fec11a68e21c2aa1dfb4b0642fa995 /host/lib/utils | |
parent | 0b5e3f2df01216a821ee3164f237711457500f5e (diff) | |
download | uhd-c1e26b4a260d6f9210f3c31b9f7311be833e8cad.tar.gz uhd-c1e26b4a260d6f9210f3c31b9f7311be833e8cad.tar.bz2 uhd-c1e26b4a260d6f9210f3c31b9f7311be833e8cad.zip |
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.
Diffstat (limited to 'host/lib/utils')
-rw-r--r-- | host/lib/utils/graph_utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<graph_edge_t> get_block_chain(const rfnoc_graph::sptr graph, } -void connect_through_blocks(rfnoc_graph::sptr graph, +std::vector<graph_edge_t> 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 |