diff options
author | ptrkrysik <ptrkrysik@gmail.com> | 2014-08-16 11:44:27 +0200 |
---|---|---|
committer | ptrkrysik <ptrkrysik@gmail.com> | 2014-08-16 11:44:27 +0200 |
commit | 3c6dfcc16fd78d9a37110a368f9577593a473f80 (patch) | |
tree | 667cd9af32e24ba3c068908fb9082eb5059ec9ff /lib/misc_utils | |
parent | 0708c4cfdb1f035b6dc57041f861d66c3d1f9895 (diff) |
Added empty sink for wireshark sink
Diffstat (limited to 'lib/misc_utils')
-rw-r--r-- | lib/misc_utils/wireshark_sink_impl.cc | 57 | ||||
-rw-r--r-- | lib/misc_utils/wireshark_sink_impl.h | 43 |
2 files changed, 100 insertions, 0 deletions
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 */ + |