summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/flat_flowgraph.cc
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-10-02 09:12:01 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-10-02 09:12:01 -0700
commitea2aeca576081806597a436a5380bc43a9eb11d1 (patch)
tree4686dc80bd7b5e782f1b9c00831eb52dcebf8a89 /gnuradio-runtime/lib/flat_flowgraph.cc
parent8d8fffafb20c5d894e478ded9111f1a503131ef1 (diff)
parent3ba6a665bc0b60c709eeaddce47dcfb92436357f (diff)
Merge remote-tracking branch 'bastibl/connect_msg_ports' into maint
Diffstat (limited to 'gnuradio-runtime/lib/flat_flowgraph.cc')
-rw-r--r--gnuradio-runtime/lib/flat_flowgraph.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/flat_flowgraph.cc b/gnuradio-runtime/lib/flat_flowgraph.cc
index 434a92fb3d..b7e949127a 100644
--- a/gnuradio-runtime/lib/flat_flowgraph.cc
+++ b/gnuradio-runtime/lib/flat_flowgraph.cc
@@ -316,6 +316,15 @@ namespace gr {
setup_buffer_alignment(block);
}
+ // Connect message ports connetions
+ for(msg_edge_viter_t i = d_msg_edges.begin(); i != d_msg_edges.end(); i++) {
+ if(FLAT_FLOWGRAPH_DEBUG)
+ std::cout << boost::format("flat_fg connecting msg primitives: (%s, %s)->(%s, %s)\n") %
+ i->src().block() % i->src().port() %
+ i->dst().block() % i->dst().port();
+ i->src().block()->message_port_sub(i->src().port(), pmt::cons(i->dst().block()->alias_pmt(), i->dst().port()));
+ }
+
// Now deal with the fact that the block details might have
// changed numbers of inputs and outputs vs. in the old
// flowgraph.