diff options
author | Josh Morman <mormjb@gmail.com> | 2020-06-03 09:04:55 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 11:00:08 -0400 |
commit | 31f0a0703eecb4949168bba1be0cb3aea86e1db1 (patch) | |
tree | 54b77a4010cd23d81b85cd45f16fa42943022736 /gnuradio-runtime/python | |
parent | 3d1caecce0045e5d630660b020a50b404b3016f6 (diff) |
pmt: update pybind code for dcons and is_pmt
Diffstat (limited to 'gnuradio-runtime/python')
-rw-r--r-- | gnuradio-runtime/python/pmt/bindings/docstrings/pmt_pydoc_template.h | 6 | ||||
-rw-r--r-- | gnuradio-runtime/python/pmt/bindings/pmt_python.cc | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gnuradio-runtime/python/pmt/bindings/docstrings/pmt_pydoc_template.h b/gnuradio-runtime/python/pmt/bindings/docstrings/pmt_pydoc_template.h index 76d7234d14..6af2f9e0af 100644 --- a/gnuradio-runtime/python/pmt/bindings/docstrings/pmt_pydoc_template.h +++ b/gnuradio-runtime/python/pmt/bindings/docstrings/pmt_pydoc_template.h @@ -249,6 +249,9 @@ static const char* __doc_pmt_is_pair = R"doc()doc"; static const char* __doc_pmt_cons = R"doc()doc"; +static const char* __doc_pmt_dcons = R"doc()doc"; + + static const char* __doc_pmt_car = R"doc()doc"; @@ -771,6 +774,9 @@ static const char* __doc_pmt_make_msg_accepter = R"doc()doc"; static const char* __doc_pmt_msg_accepter_ref = R"doc()doc"; +static const char* __doc_pmt_is_pdu = R"doc()doc"; + + static const char* __doc_pmt_eq = R"doc()doc"; diff --git a/gnuradio-runtime/python/pmt/bindings/pmt_python.cc b/gnuradio-runtime/python/pmt/bindings/pmt_python.cc index 5761d5c1c9..7cb1e530d3 100644 --- a/gnuradio-runtime/python/pmt/bindings/pmt_python.cc +++ b/gnuradio-runtime/python/pmt/bindings/pmt_python.cc @@ -297,6 +297,9 @@ void bind_pmt(py::module& m) m.def("cons", &::pmt::cons, py::arg("x"), py::arg("y"), D(cons)); + m.def("dcons", &::pmt::dcons, py::arg("x"), py::arg("y"), D(dcons)); + + m.def("car", &::pmt::car, py::arg("pair"), D(car)); @@ -1417,6 +1420,9 @@ void bind_pmt(py::module& m) // m.def("msg_accepter_ref",&pmt::msg_accepter_ref, // py::arg("obj") // ); + m.def("is_pdu", &::pmt::is_pdu, py::arg("obj"), D(is_pdu)); + + m.def("eq", &::pmt::eq, py::arg("x"), py::arg("y"), D(eq)); |