From 3c6dfcc16fd78d9a37110a368f9577593a473f80 Mon Sep 17 00:00:00 2001 From: ptrkrysik Date: Sat, 16 Aug 2014 11:44:27 +0200 Subject: Added empty sink for wireshark sink --- lib/CMakeLists.txt | 1 + lib/misc_utils/wireshark_sink_impl.cc | 57 +++++++++++++++++++++++++++++++++++ lib/misc_utils/wireshark_sink_impl.h | 43 ++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 lib/misc_utils/wireshark_sink_impl.cc create mode 100644 lib/misc_utils/wireshark_sink_impl.h (limited to 'lib') 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 +#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 + +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 */ + -- cgit v1.2.3