From 85e510c89b5b884a3be1fa6bda016fdc3383a0ab Mon Sep 17 00:00:00 2001 From: Thomas Winget Date: Thu, 27 Feb 2020 21:20:28 -0500 Subject: [PATCH] add router_event pybind file --- pybind/llarp/tooling/router_event.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pybind/llarp/tooling/router_event.cpp diff --git a/pybind/llarp/tooling/router_event.cpp b/pybind/llarp/tooling/router_event.cpp new file mode 100644 index 000000000..2d792a8c4 --- /dev/null +++ b/pybind/llarp/tooling/router_event.cpp @@ -0,0 +1,20 @@ +#include "common.hpp" + +#include "tooling/router_event.hpp" + +namespace tooling +{ + void + RouterEvent_Init(py::module & mod) + { + py::class_(mod, "RouterEvent") + .def(py::init<>()) + .def("ToString", &RouterEvent::ToString) + .def_readonly("routerID", &RouterEvent::routerID); + + py::class_(mod, "PathBuildAttemptEvent") + .def(py::init<>()); + //.def_readonly("hops", &PathBuildAttemptEvent::hops); + } + +} // namespace tooling