summaryrefslogtreecommitdiff
path: root/gr-vocoder/python/vocoder/bindings/codec2_python.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-vocoder/python/vocoder/bindings/codec2_python.cc')
-rw-r--r--gr-vocoder/python/vocoder/bindings/codec2_python.cc35
1 files changed, 35 insertions, 0 deletions
diff --git a/gr-vocoder/python/vocoder/bindings/codec2_python.cc b/gr-vocoder/python/vocoder/bindings/codec2_python.cc
new file mode 100644
index 0000000000..7c9d960dd2
--- /dev/null
+++ b/gr-vocoder/python/vocoder/bindings/codec2_python.cc
@@ -0,0 +1,35 @@
+/*
+ * 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 */
+
+#include <pybind11/complex.h>
+#include <pybind11/pybind11.h>
+#include <pybind11/stl.h>
+
+namespace py = pybind11;
+
+#include <gnuradio/vocoder/codec2.h>
+// pydoc.h is automatically generated in the build directory
+#include <codec2_pydoc.h>
+
+void bind_codec2(py::module& m)
+{
+
+ using codec2 = ::gr::vocoder::codec2;
+
+
+ py::class_<codec2, std::shared_ptr<codec2>>(m, "codec2", D(codec2))
+
+ .def(py::init<>(), D(codec2, codec2, 0))
+ .def(
+ py::init<gr::vocoder::codec2 const&>(), py::arg("arg0"), D(codec2, codec2, 1))
+
+ ;
+}