From 7573c04c354cd83742604b0d629cac25ed2389d2 Mon Sep 17 00:00:00 2001 From: Johannes Demel Date: Tue, 3 May 2022 16:31:28 +0200 Subject: [PATCH] pybind11: Update bindings Signed-off-by: Johannes Demel --- .../bindings/docstrings/frame_gate_pydoc_template.h | 7 +++++-- .../docstrings/sc_delay_corr_pydoc_template.h | 5 ++++- .../docstrings/sync_tag_align_cc_pydoc_template.h | 5 ++++- python/bindings/frame_gate_python.cc | 13 +++++++------ python/bindings/sc_delay_corr_python.cc | 6 +++--- python/bindings/sc_tagger_python.cc | 2 +- python/bindings/sync_tag_align_cc_python.cc | 8 ++++---- python/bindings/xcorr_tagger_python.cc | 2 +- 8 files changed, 29 insertions(+), 19 deletions(-) diff --git a/python/bindings/docstrings/frame_gate_pydoc_template.h b/python/bindings/docstrings/frame_gate_pydoc_template.h index 6b206c3..cdfbb12 100644 --- a/python/bindings/docstrings/frame_gate_pydoc_template.h +++ b/python/bindings/docstrings/frame_gate_pydoc_template.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 Free Software Foundation, Inc. + * Copyright 2022 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -18,4 +18,7 @@ static const char* __doc_gr_xfdm_sync_frame_gate = R"doc()doc"; -static const char* __doc_gr_xfdm_sync_frame_gate = R"doc()doc"; +static const char* __doc_gr_xfdm_sync_frame_gate_frame_gate = R"doc()doc"; + + +static const char* __doc_gr_xfdm_sync_frame_gate_make = R"doc()doc"; diff --git a/python/bindings/docstrings/sc_delay_corr_pydoc_template.h b/python/bindings/docstrings/sc_delay_corr_pydoc_template.h index f1abd98..e526799 100644 --- a/python/bindings/docstrings/sc_delay_corr_pydoc_template.h +++ b/python/bindings/docstrings/sc_delay_corr_pydoc_template.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 Free Software Foundation, Inc. + * Copyright 2022 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -18,4 +18,7 @@ static const char* __doc_gr_xfdm_sync_sc_delay_corr = R"doc()doc"; +static const char* __doc_gr_xfdm_sync_sc_delay_corr_sc_delay_corr = R"doc()doc"; + + static const char* __doc_gr_xfdm_sync_sc_delay_corr_make = R"doc()doc"; diff --git a/python/bindings/docstrings/sync_tag_align_cc_pydoc_template.h b/python/bindings/docstrings/sync_tag_align_cc_pydoc_template.h index d6c19e5..b34e912 100644 --- a/python/bindings/docstrings/sync_tag_align_cc_pydoc_template.h +++ b/python/bindings/docstrings/sync_tag_align_cc_pydoc_template.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 Free Software Foundation, Inc. + * Copyright 2022 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -18,4 +18,7 @@ static const char* __doc_gr_xfdm_sync_sync_tag_align_cc = R"doc()doc"; +static const char* __doc_gr_xfdm_sync_sync_tag_align_cc_sync_tag_align_cc = R"doc()doc"; + + static const char* __doc_gr_xfdm_sync_sync_tag_align_cc_make = R"doc()doc"; diff --git a/python/bindings/frame_gate_python.cc b/python/bindings/frame_gate_python.cc index fc36fec..dfd08eb 100644 --- a/python/bindings/frame_gate_python.cc +++ b/python/bindings/frame_gate_python.cc @@ -1,5 +1,5 @@ /* - * Copyright 2020 Free Software Foundation, Inc. + * Copyright 2022 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -25,24 +25,25 @@ namespace py = pybind11; #include // pydoc.h is automatically generated in the build directory -// #include +#include void bind_frame_gate(py::module& m) { - using frame_gate = gr::xfdm_sync::frame_gate; + using frame_gate = ::gr::xfdm_sync::frame_gate; py::class_>( - m, "frame_gate") + m, "frame_gate", D(frame_gate)) .def(py::init(&frame_gate::make), py::arg("len_prologue"), py::arg("len_epilogue"), py::arg("len_symbol"), py::arg("symbols_per_frame_min"), - py::arg("symbols_per_frame_min"), - py::arg("do_compensate")) + py::arg("symbols_per_frame_max"), + py::arg("do_compensate"), + D(frame_gate, make)) ; diff --git a/python/bindings/sc_delay_corr_python.cc b/python/bindings/sc_delay_corr_python.cc index 703b71b..7571a63 100644 --- a/python/bindings/sc_delay_corr_python.cc +++ b/python/bindings/sc_delay_corr_python.cc @@ -1,5 +1,5 @@ /* - * Copyright 2020 Free Software Foundation, Inc. + * Copyright 2022 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -14,7 +14,7 @@ /* BINDTOOL_GEN_AUTOMATIC(0) */ /* BINDTOOL_USE_PYGCCXML(0) */ /* BINDTOOL_HEADER_FILE(sc_delay_corr.h) */ -/* BINDTOOL_HEADER_FILE_HASH(74a914e1f4822839159a6a7eef2729b2) */ +/* BINDTOOL_HEADER_FILE_HASH(39887eceb8b6586eb2aabc3c4d9d5f58) */ /***********************************************************************************/ #include @@ -30,7 +30,7 @@ namespace py = pybind11; void bind_sc_delay_corr(py::module& m) { - using sc_delay_corr = gr::xfdm_sync::sc_delay_corr; + using sc_delay_corr = ::gr::xfdm_sync::sc_delay_corr; py::class_ diff --git a/python/bindings/sync_tag_align_cc_python.cc b/python/bindings/sync_tag_align_cc_python.cc index cd9ba9c..4a9f617 100644 --- a/python/bindings/sync_tag_align_cc_python.cc +++ b/python/bindings/sync_tag_align_cc_python.cc @@ -1,5 +1,5 @@ /* - * Copyright 2020 Free Software Foundation, Inc. + * Copyright 2022 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -13,8 +13,8 @@ /* If manual edits are made, the following tags should be modified accordingly. */ /* BINDTOOL_GEN_AUTOMATIC(0) */ /* BINDTOOL_USE_PYGCCXML(0) */ -/* BINDTOOL_HEADER_FILE(sync_tag_align_cc.h) */ -/* BINDTOOL_HEADER_FILE_HASH(4947bf825712e40f5543404ebbecc0b5) */ +/* BINDTOOL_HEADER_FILE(sync_tag_align_cc.h) */ +/* BINDTOOL_HEADER_FILE_HASH(1f9f86e3e0d858f5dbffbc0996874d65) */ /***********************************************************************************/ #include @@ -30,7 +30,7 @@ namespace py = pybind11; void bind_sync_tag_align_cc(py::module& m) { - using sync_tag_align_cc = gr::xfdm_sync::sync_tag_align_cc; + using sync_tag_align_cc = ::gr::xfdm_sync::sync_tag_align_cc; py::class_