From 2a5cb62885ab46ae0d8594bee26e256baed9813b Mon Sep 17 00:00:00 2001
From: Josh Morman <mormjb@gmail.com>
Date: Thu, 23 Apr 2020 11:01:05 -0400
Subject: vocoder: add pybind11 bindings

---
 .../python/vocoder/bindings/codec2_python.cc       | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 gr-vocoder/python/vocoder/bindings/codec2_python.cc

(limited to 'gr-vocoder/python/vocoder/bindings/codec2_python.cc')

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))
+
+        ;
+}
-- 
cgit v1.2.3