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
390 B
C++

#include <llarp/path/path.hpp>
#include <common.hpp>
#include <pybind11/operators.h>
namespace llarp
{
void
PathTypes_Init(py::module& mod)
{
py::class_<PathID_t>(mod, "PathID")
.def(py::self == py::self)
.def("ShortHex", &PathID_t::ShortHex)
.def("__str__", &PathID_t::ShortHex)
.def("__repr__", &PathID_t::ShortHex);
}
} // namespace llarp