You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/pybind/llarp/path/path_types.cpp

19 lines
421 B
C++

#include <path/path.hpp>
#include "common.hpp"
namespace llarp
{
void
PathTypes_Init(py::module & mod)
{
py::class_< PathID_t >(mod, "PathID")
.def("__eq__", [](const PathID_t* const lhs, const PathID_t* const rhs) {
return *lhs == *rhs;
})
.def("ShortHex", &PathID_t::ShortHex)
.def("__str__", &PathID_t::ShortHex)
.def("__repr__", &PathID_t::ShortHex);
}
} // namespace llarp