summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/bindings/messages/msg_passing_python.cc
blob: 3564530a885acdc71ba530bd584d66ff12ab92b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * 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_passing.h>

void bind_messages_msg_passing(py::module& m)
{


    m.def("send",
          (pmt::pmt_t(*)(
              gr::messages::msg_accepter_sptr, pmt::pmt_t const&, pmt::pmt_t const&)) &
              gr::messages::send,
          py::arg("accepter"),
          py::arg("which_port"),
          py::arg("msg"));
    m.def("send",
          (pmt::pmt_t(*)(
              gr::messages::msg_accepter*, pmt::pmt_t const&, pmt::pmt_t const&)) &
              gr::messages::send,
          py::arg("accepter"),
          py::arg("which_port"),
          py::arg("msg"));
    m.def("send",
          (pmt::pmt_t(*)(
              gr::messages::msg_accepter&, pmt::pmt_t const&, pmt::pmt_t const&)) &
              gr::messages::send,
          py::arg("accepter"),
          py::arg("which_port"),
          py::arg("msg"));
    m.def("send",
          (pmt::pmt_t(*)(pmt::pmt_t, pmt::pmt_t const&, pmt::pmt_t const&)) &
              gr::messages::send,
          py::arg("accepter"),
          py::arg("which_port"),
          py::arg("msg"));
}