python bindings

This commit is contained in:
Bastian Bloessl
2021-07-19 09:36:07 +02:00
parent eeca8906ba
commit a1bbd2b44b
22 changed files with 1151 additions and 2 deletions
+20 -1
View File
@@ -21,9 +21,18 @@ namespace py = pybind11;
// Please do not delete
/**************************************/
// BINDING_FUNCTION_PROTOTYPES(
void bind_burst_tagger(py::module& m);
void bind_channel_model(py::module& m);
void bind_packet_dropper(py::module& m);
void bind_packet_pad2(py::module& m);
void bind_packet_pad(py::module& m);
void bind_pad_tagged_stream(py::module& m);
void bind_periodic_msg_source(py::module& m);
void bind_random_periodic_msg_source(py::module& m);
void bind_rtt_measure(py::module& m);
void bind_wireshark_connector(py::module& m);
// ) END BINDING_FUNCTION_PROTOTYPES
// We need this hack because import_array() returns NULL
// for newer Python versions.
// This function is also necessary because it ensures access to the C API
@@ -49,5 +58,15 @@ PYBIND11_MODULE(foo_python, m)
// Please do not delete
/**************************************/
// BINDING_FUNCTION_CALLS(
bind_burst_tagger(m);
bind_channel_model(m);
bind_packet_dropper(m);
bind_packet_pad2(m);
bind_packet_pad(m);
bind_pad_tagged_stream(m);
bind_periodic_msg_source(m);
bind_random_periodic_msg_source(m);
bind_rtt_measure(m);
bind_wireshark_connector(m);
// ) END BINDING_FUNCTION_CALLS
}