diff options
author | Josh Morman <mormjb@gmail.com> | 2020-04-23 07:51:39 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:47 -0400 |
commit | ba16fdf0a0e9052163a5dd00b5927b2eccc0683f (patch) | |
tree | 59c7f11883e221287bb05802bb37c155549b605d /gnuradio-runtime/python/gnuradio/gr/bindings/messages/msg_producer_python.cc | |
parent | 42fe41b9f2224e09fde9f00426cc6b10ba7b6416 (diff) |
runtime: add pybind11 bindings
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/bindings/messages/msg_producer_python.cc')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/bindings/messages/msg_producer_python.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/messages/msg_producer_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/messages/msg_producer_python.cc new file mode 100644 index 0000000000..d519247ea3 --- /dev/null +++ b/gnuradio-runtime/python/gnuradio/gr/bindings/messages/msg_producer_python.cc @@ -0,0 +1,28 @@ +/* + * 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/messages/msg_producer.h> + +void bind_messages_msg_producer(py::module& m) +{ + using msg_producer = gr::messages::msg_producer; + + + py::class_<msg_producer, std::shared_ptr<msg_producer>>(m, "messages_msg_producer") + + .def("retrieve", &msg_producer::retrieve); +} |