diff options
author | Tim O'Shea | 2012-11-28 15:15:58 -0800 |
---|---|---|
committer | Johnathan Corgan | 2012-11-29 15:42:57 -0800 |
commit | 92cfb0240005675f4e7a55a81552f4c7a5128cd8 (patch) | |
tree | 024a40e11a27a41eaa908b2eefb4a218795bff18 /gnuradio-core/src/lib/general | |
parent | 0fbd1699158f01937f61c245398ccdaebe3d978b (diff) | |
download | gnuradio-92cfb0240005675f4e7a55a81552f4c7a5128cd8.tar.gz gnuradio-92cfb0240005675f4e7a55a81552f4c7a5128cd8.tar.bz2 gnuradio-92cfb0240005675f4e7a55a81552f4c7a5128cd8.zip |
core: adding msg_connect, updating msg interface, adding symbolic block names
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_nop.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_nop.cc b/gnuradio-core/src/lib/general/gr_nop.cc index ca5983c39..edfe1d76d 100644 --- a/gnuradio-core/src/lib/general/gr_nop.cc +++ b/gnuradio-core/src/lib/general/gr_nop.cc @@ -40,7 +40,8 @@ gr_nop::gr_nop (size_t sizeof_stream_item) d_nmsgs_recvd(0) { // Arrange to have count_received_msgs called when messages are received. - set_msg_handler(boost::bind(&gr_nop::count_received_msgs, this, _1)); + message_port_register_in(pmt::mp("port")); + set_msg_handler(pmt::mp("port"), boost::bind(&gr_nop::count_received_msgs, this, _1)); } // Trivial message handler that just counts them. |