aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorptrkrysik <ptrkrysik@gmail.com>2014-08-16 11:51:49 +0200
committerptrkrysik <ptrkrysik@gmail.com>2014-08-16 11:51:49 +0200
commiteaaf22fea0fdd6e1abe6e9f7d29be83cc2e239b6 (patch)
tree7b81c5710b939b1a2f858a19272e4212ca11f6f7 /lib
parentd5af288e14eb0194be8057484f5729410f07a1b3 (diff)
Added message input to the wireshark sink
Diffstat (limited to 'lib')
-rw-r--r--lib/misc_utils/wireshark_sink_impl.cc12
-rw-r--r--lib/misc_utils/wireshark_sink_impl.h2
2 files changed, 12 insertions, 2 deletions
diff --git a/lib/misc_utils/wireshark_sink_impl.cc b/lib/misc_utils/wireshark_sink_impl.cc
index 1606818..e2b0558 100644
--- a/lib/misc_utils/wireshark_sink_impl.cc
+++ b/lib/misc_utils/wireshark_sink_impl.cc
@@ -28,6 +28,12 @@
namespace gr {
namespace gsm {
+ void wireshark_sink_impl::send_to_wireshark(pmt::pmt_t msg)
+ {
+ //implementation of sending gsm messages to wireshark
+ }
+
+
wireshark_sink::sptr
wireshark_sink::make()
{
@@ -42,7 +48,11 @@ namespace gr {
: gr::block("wireshark_sink",
gr::io_signature::make(0, 0, 0),
gr::io_signature::make(0, 0, 0))
- {}
+ {
+ message_port_register_in(pmt::mp("msgs"));
+ set_msg_handler(pmt::mp("msgs"), boost::bind(&wireshark_sink_impl::send_to_wireshark, this, _1));
+ }
+
/*
* Our virtual destructor.
diff --git a/lib/misc_utils/wireshark_sink_impl.h b/lib/misc_utils/wireshark_sink_impl.h
index 4992d05..8069255 100644
--- a/lib/misc_utils/wireshark_sink_impl.h
+++ b/lib/misc_utils/wireshark_sink_impl.h
@@ -29,7 +29,7 @@ namespace gr {
class wireshark_sink_impl : public wireshark_sink
{
private:
- // Nothing to declare in this block.
+ void send_to_wireshark(pmt::pmt_t msg);
public:
wireshark_sink_impl();