aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorptrkrysik <ptrkrysik@gmail.com>2014-08-16 11:44:27 +0200
committerptrkrysik <ptrkrysik@gmail.com>2014-08-16 11:44:27 +0200
commit3c6dfcc16fd78d9a37110a368f9577593a473f80 (patch)
tree667cd9af32e24ba3c068908fb9082eb5059ec9ff /lib
parent0708c4cfdb1f035b6dc57041f861d66c3d1f9895 (diff)
Added empty sink for wireshark sink
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeLists.txt1
-rw-r--r--lib/misc_utils/wireshark_sink_impl.cc57
-rw-r--r--lib/misc_utils/wireshark_sink_impl.h43
3 files changed, 101 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index e4ed842..867dfdc 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -38,6 +38,7 @@ list(APPEND gsm_sources
misc_utils/controlled_rotator_cc_impl.cc
misc_utils/controlled_const_source_f_impl.cc
misc_utils/message_printer_impl.cc
+ misc_utils/wireshark_sink_impl.cc
)
add_library(gnuradio-gsm SHARED ${gsm_sources})
diff --git a/lib/misc_utils/wireshark_sink_impl.cc b/lib/misc_utils/wireshark_sink_impl.cc
new file mode 100644
index 0000000..1606818
--- /dev/null
+++ b/lib/misc_utils/wireshark_sink_impl.cc
@@ -0,0 +1,57 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2014 <+YOU OR YOUR COMPANY+>.
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gnuradio/io_signature.h>
+#include "wireshark_sink_impl.h"
+
+namespace gr {
+ namespace gsm {
+
+ wireshark_sink::sptr
+ wireshark_sink::make()
+ {
+ return gnuradio::get_initial_sptr
+ (new wireshark_sink_impl());
+ }
+
+ /*
+ * The private constructor
+ */
+ wireshark_sink_impl::wireshark_sink_impl()
+ : gr::block("wireshark_sink",
+ gr::io_signature::make(0, 0, 0),
+ gr::io_signature::make(0, 0, 0))
+ {}
+
+ /*
+ * Our virtual destructor.
+ */
+ wireshark_sink_impl::~wireshark_sink_impl()
+ {
+ }
+
+
+ } /* namespace gsm */
+} /* namespace gr */
+
diff --git a/lib/misc_utils/wireshark_sink_impl.h b/lib/misc_utils/wireshark_sink_impl.h
new file mode 100644
index 0000000..4992d05
--- /dev/null
+++ b/lib/misc_utils/wireshark_sink_impl.h
@@ -0,0 +1,43 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2014 <+YOU OR YOUR COMPANY+>.
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef INCLUDED_GSM_WIRESHARK_SINK_IMPL_H
+#define INCLUDED_GSM_WIRESHARK_SINK_IMPL_H
+
+#include <gsm/misc_utils/wireshark_sink.h>
+
+namespace gr {
+ namespace gsm {
+
+ class wireshark_sink_impl : public wireshark_sink
+ {
+ private:
+ // Nothing to declare in this block.
+
+ public:
+ wireshark_sink_impl();
+ ~wireshark_sink_impl();
+
+ }; // namespace gsm
+ }
+} // namespace gr
+
+#endif /* INCLUDED_GSM_WIRESHARK_SINK_IMPL_H */
+