summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/bindings/stream_mux_python.cc
blob: fa2fdd66b153a94e0b8ad8cd378a5a20f17c0871 (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
/*
 * 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/blocks/stream_mux.h>
// pydoc.h is automatically generated in the build directory
#include <stream_mux_pydoc.h>

void bind_stream_mux(py::module& m)
{

    using stream_mux = ::gr::blocks::stream_mux;


    py::class_<stream_mux, gr::block, gr::basic_block, std::shared_ptr<stream_mux>>(
        m, "stream_mux", D(stream_mux))

        .def(py::init(&stream_mux::make),
             py::arg("itemsize"),
             py::arg("lengths"),
             D(stream_mux, make))


        ;
}