lokinet/pybind/llarp/service/address.cpp
Stephen Shelton 273270916e
The Great Wall of Blame
This commit reflects changes to clang-format rules. Unfortunately,
these rule changes create a massive change to the codebase, which
causes an apparent rewrite of git history.

Git blame's --ignore-rev flag can be used to ignore this commit when
attempting to `git blame` some code.
2020-04-07 12:38:56 -06:00

16 lines
382 B
C++

#include "common.hpp"
#include "service/address.hpp"
namespace llarp
{
namespace service
{
void
Address_Init(py::module& mod)
{
py::class_<Address>(mod, "ServiceAddress")
.def(py::init<std::string>())
.def("__str__", [](const Address& addr) -> std::string { return addr.ToString(); });
}
} // namespace service
} // namespace llarp