summaryrefslogtreecommitdiff
path: root/gr-blocks/python
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2021-03-25 10:43:14 -0400
committermormj <34754695+mormj@users.noreply.github.com>2021-04-21 14:02:57 -0400
commit50c48b3321d59ff6fa296d672a723787f32e5345 (patch)
tree1f086658b3d4392caa98b99d466fead77c05e981 /gr-blocks/python
parentd71c4550e04f74b09fba0bbe8d7cd07dda68ba35 (diff)
blocks: remove deprecated network blocks
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-blocks/python')
-rw-r--r--gr-blocks/python/blocks/bindings/CMakeLists.txt3
-rw-r--r--gr-blocks/python/blocks/bindings/docstrings/tcp_server_sink_pydoc_template.h24
-rw-r--r--gr-blocks/python/blocks/bindings/docstrings/udp_sink_pydoc_template.h36
-rw-r--r--gr-blocks/python/blocks/bindings/docstrings/udp_source_pydoc_template.h39
-rw-r--r--gr-blocks/python/blocks/bindings/python_bindings.cc6
-rw-r--r--gr-blocks/python/blocks/bindings/tcp_server_sink_python.cc51
-rw-r--r--gr-blocks/python/blocks/bindings/udp_sink_python.cc64
-rw-r--r--gr-blocks/python/blocks/bindings/udp_source_python.cc67
8 files changed, 0 insertions, 290 deletions
diff --git a/gr-blocks/python/blocks/bindings/CMakeLists.txt b/gr-blocks/python/blocks/bindings/CMakeLists.txt
index 28e9c22537..b4e300a0f1 100644
--- a/gr-blocks/python/blocks/bindings/CMakeLists.txt
+++ b/gr-blocks/python/blocks/bindings/CMakeLists.txt
@@ -140,15 +140,12 @@ list(APPEND blocks_python_files
tagged_stream_multiply_length_python.cc
tagged_stream_mux_python.cc
tags_strobe_python.cc
- tcp_server_sink_python.cc
test_tag_variable_rate_ff_python.cc
threshold_ff_python.cc
throttle_python.cc
transcendental_python.cc
tsb_vector_sink_python.cc
uchar_to_float_python.cc
- udp_sink_python.cc
- udp_source_python.cc
unpack_k_bits_python.cc
unpack_k_bits_bb_python.cc
unpacked_to_packed_python.cc
diff --git a/gr-blocks/python/blocks/bindings/docstrings/tcp_server_sink_pydoc_template.h b/gr-blocks/python/blocks/bindings/docstrings/tcp_server_sink_pydoc_template.h
deleted file mode 100644
index cca0eb1992..0000000000
--- a/gr-blocks/python/blocks/bindings/docstrings/tcp_server_sink_pydoc_template.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright 2020 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-#include "pydoc_macros.h"
-#define D(...) DOC(gr, blocks, __VA_ARGS__)
-/*
- This file contains placeholders for docstrings for the Python bindings.
- Do not edit! These were automatically extracted during the binding process
- and will be overwritten during the build process
- */
-
-
-static const char* __doc_gr_blocks_tcp_server_sink = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_tcp_server_sink_tcp_server_sink = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_tcp_server_sink_make = R"doc()doc";
diff --git a/gr-blocks/python/blocks/bindings/docstrings/udp_sink_pydoc_template.h b/gr-blocks/python/blocks/bindings/docstrings/udp_sink_pydoc_template.h
deleted file mode 100644
index 316a0eed35..0000000000
--- a/gr-blocks/python/blocks/bindings/docstrings/udp_sink_pydoc_template.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright 2020 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-#include "pydoc_macros.h"
-#define D(...) DOC(gr, blocks, __VA_ARGS__)
-/*
- This file contains placeholders for docstrings for the Python bindings.
- Do not edit! These were automatically extracted during the binding process
- and will be overwritten during the build process
- */
-
-
-static const char* __doc_gr_blocks_udp_sink = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_sink_udp_sink_0 = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_sink_udp_sink_1 = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_sink_make = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_sink_payload_size = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_sink_connect = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_sink_disconnect = R"doc()doc";
diff --git a/gr-blocks/python/blocks/bindings/docstrings/udp_source_pydoc_template.h b/gr-blocks/python/blocks/bindings/docstrings/udp_source_pydoc_template.h
deleted file mode 100644
index d0ed635ea3..0000000000
--- a/gr-blocks/python/blocks/bindings/docstrings/udp_source_pydoc_template.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2020 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-#include "pydoc_macros.h"
-#define D(...) DOC(gr, blocks, __VA_ARGS__)
-/*
- This file contains placeholders for docstrings for the Python bindings.
- Do not edit! These were automatically extracted during the binding process
- and will be overwritten during the build process
- */
-
-
-static const char* __doc_gr_blocks_udp_source = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_source_udp_source_0 = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_source_udp_source_1 = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_source_make = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_source_connect = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_source_disconnect = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_source_payload_size = R"doc()doc";
-
-
-static const char* __doc_gr_blocks_udp_source_get_port = R"doc()doc";
diff --git a/gr-blocks/python/blocks/bindings/python_bindings.cc b/gr-blocks/python/blocks/bindings/python_bindings.cc
index a9435c7107..7b8f0a4f3b 100644
--- a/gr-blocks/python/blocks/bindings/python_bindings.cc
+++ b/gr-blocks/python/blocks/bindings/python_bindings.cc
@@ -144,15 +144,12 @@ void bind_tagged_stream_align(py::module&);
void bind_tagged_stream_multiply_length(py::module&);
void bind_tagged_stream_mux(py::module&);
void bind_tags_strobe(py::module&);
-void bind_tcp_server_sink(py::module&);
void bind_test_tag_variable_rate_ff(py::module&);
void bind_threshold_ff(py::module&);
void bind_throttle(py::module&);
void bind_transcendental(py::module&);
void bind_tsb_vector_sink(py::module&);
void bind_uchar_to_float(py::module&);
-void bind_udp_sink(py::module&);
-void bind_udp_source(py::module&);
void bind_unpack_k_bits(py::module&);
void bind_unpack_k_bits_bb(py::module&);
void bind_unpacked_to_packed(py::module&);
@@ -318,15 +315,12 @@ PYBIND11_MODULE(blocks_python, m)
bind_tagged_stream_multiply_length(m);
bind_tagged_stream_mux(m);
bind_tags_strobe(m);
- bind_tcp_server_sink(m);
bind_test_tag_variable_rate_ff(m);
bind_threshold_ff(m);
bind_throttle(m);
bind_transcendental(m);
bind_tsb_vector_sink(m);
bind_uchar_to_float(m);
- bind_udp_sink(m);
- bind_udp_source(m);
bind_unpack_k_bits(m);
bind_unpack_k_bits_bb(m);
bind_unpacked_to_packed(m);
diff --git a/gr-blocks/python/blocks/bindings/tcp_server_sink_python.cc b/gr-blocks/python/blocks/bindings/tcp_server_sink_python.cc
deleted file mode 100644
index f98317c411..0000000000
--- a/gr-blocks/python/blocks/bindings/tcp_server_sink_python.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2020 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-
-/***********************************************************************************/
-/* This file is automatically generated using bindtool and can be manually edited */
-/* The following lines can be configured to regenerate this file during cmake */
-/* If manual edits are made, the following tags should be modified accordingly. */
-/* BINDTOOL_GEN_AUTOMATIC(0) */
-/* BINDTOOL_USE_PYGCCXML(0) */
-/* BINDTOOL_HEADER_FILE(tcp_server_sink.h) */
-/* BINDTOOL_HEADER_FILE_HASH(9f8a488c6a838cb20c718b515e039594) */
-/***********************************************************************************/
-
-#include <pybind11/complex.h>
-#include <pybind11/pybind11.h>
-#include <pybind11/stl.h>
-
-namespace py = pybind11;
-
-#include <gnuradio/blocks/tcp_server_sink.h>
-// pydoc.h is automatically generated in the build directory
-#include <tcp_server_sink_pydoc.h>
-
-void bind_tcp_server_sink(py::module& m)
-{
-
- using tcp_server_sink = ::gr::blocks::tcp_server_sink;
-
-
- py::class_<tcp_server_sink,
- gr::sync_block,
- gr::block,
- gr::basic_block,
- std::shared_ptr<tcp_server_sink>>(m, "tcp_server_sink", D(tcp_server_sink))
-
- .def(py::init(&tcp_server_sink::make),
- py::arg("itemsize"),
- py::arg("host"),
- py::arg("port"),
- py::arg("noblock") = false,
- D(tcp_server_sink, make))
-
-
- ;
-}
diff --git a/gr-blocks/python/blocks/bindings/udp_sink_python.cc b/gr-blocks/python/blocks/bindings/udp_sink_python.cc
deleted file mode 100644
index f13313b64b..0000000000
--- a/gr-blocks/python/blocks/bindings/udp_sink_python.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright 2020 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-
-/***********************************************************************************/
-/* This file is automatically generated using bindtool and can be manually edited */
-/* The following lines can be configured to regenerate this file during cmake */
-/* If manual edits are made, the following tags should be modified accordingly. */
-/* BINDTOOL_GEN_AUTOMATIC(0) */
-/* BINDTOOL_USE_PYGCCXML(0) */
-/* BINDTOOL_HEADER_FILE(udp_sink.h) */
-/* BINDTOOL_HEADER_FILE_HASH(b661fa9adabd289dfb26ffd01bab1a8d) */
-/***********************************************************************************/
-
-#include <pybind11/complex.h>
-#include <pybind11/pybind11.h>
-#include <pybind11/stl.h>
-
-namespace py = pybind11;
-
-#include <gnuradio/blocks/udp_sink.h>
-// pydoc.h is automatically generated in the build directory
-#include <udp_sink_pydoc.h>
-
-void bind_udp_sink(py::module& m)
-{
-
- using udp_sink = ::gr::blocks::udp_sink;
-
-
- py::class_<udp_sink,
- gr::sync_block,
- gr::block,
- gr::basic_block,
- std::shared_ptr<udp_sink>>(m, "udp_sink", D(udp_sink))
-
- .def(py::init(&udp_sink::make),
- py::arg("itemsize"),
- py::arg("host"),
- py::arg("port"),
- py::arg("payload_size") = 1472,
- py::arg("eof") = true,
- D(udp_sink, make))
-
-
- .def("payload_size", &udp_sink::payload_size, D(udp_sink, payload_size))
-
-
- .def("connect",
- &udp_sink::connect,
- py::arg("host"),
- py::arg("port"),
- D(udp_sink, connect))
-
-
- .def("disconnect", &udp_sink::disconnect, D(udp_sink, disconnect))
-
- ;
-}
diff --git a/gr-blocks/python/blocks/bindings/udp_source_python.cc b/gr-blocks/python/blocks/bindings/udp_source_python.cc
deleted file mode 100644
index bc5590f6a0..0000000000
--- a/gr-blocks/python/blocks/bindings/udp_source_python.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright 2020 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-
-/***********************************************************************************/
-/* This file is automatically generated using bindtool and can be manually edited */
-/* The following lines can be configured to regenerate this file during cmake */
-/* If manual edits are made, the following tags should be modified accordingly. */
-/* BINDTOOL_GEN_AUTOMATIC(0) */
-/* BINDTOOL_USE_PYGCCXML(0) */
-/* BINDTOOL_HEADER_FILE(udp_source.h) */
-/* BINDTOOL_HEADER_FILE_HASH(be808fc0ee5ca0d58c71e38a5734c955) */
-/***********************************************************************************/
-
-#include <pybind11/complex.h>
-#include <pybind11/pybind11.h>
-#include <pybind11/stl.h>
-
-namespace py = pybind11;
-
-#include <gnuradio/blocks/udp_source.h>
-// pydoc.h is automatically generated in the build directory
-#include <udp_source_pydoc.h>
-
-void bind_udp_source(py::module& m)
-{
-
- using udp_source = ::gr::blocks::udp_source;
-
-
- py::class_<udp_source,
- gr::sync_block,
- gr::block,
- gr::basic_block,
- std::shared_ptr<udp_source>>(m, "udp_source", D(udp_source))
-
- .def(py::init(&udp_source::make),
- py::arg("itemsize"),
- py::arg("host"),
- py::arg("port"),
- py::arg("payload_size") = 1472,
- py::arg("eof") = true,
- D(udp_source, make))
-
-
- .def("connect",
- &udp_source::connect,
- py::arg("host"),
- py::arg("port"),
- D(udp_source, connect))
-
-
- .def("disconnect", &udp_source::disconnect, D(udp_source, disconnect))
-
-
- .def("payload_size", &udp_source::payload_size, D(udp_source, payload_size))
-
-
- .def("get_port", &udp_source::get_port, D(udp_source, get_port))
-
- ;
-}