lokinet/pybind/llarp/tooling/router_event.cpp

21 lines
479 B
C++
Raw Normal View History

2020-02-28 02:20:28 +00:00
#include "common.hpp"
#include "tooling/router_event.hpp"
namespace tooling
{
void
RouterEvent_Init(py::module & mod)
{
py::class_<RouterEvent>(mod, "RouterEvent")
.def(py::init<>())
.def("ToString", &RouterEvent::ToString)
.def_readonly("routerID", &RouterEvent::routerID);
py::class_<PathBuildAttemptEvent>(mod, "PathBuildAttemptEvent")
.def(py::init<>());
//.def_readonly("hops", &PathBuildAttemptEvent::hops);
}
} // namespace tooling