lokinet/pybind/llarp/router.cpp
dr7ana f574cd798f Clang format include sorting + CMake
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use
- shuffled around some cmake linking to simplify dependency graph
- superfluous files removed
2024-01-31 07:54:12 -08:00

29 lines
671 B
C++

#include <llarp/router/router.hpp>
#include <llarp/tooling/hive_router.hpp>
#include <common.hpp>
namespace llarp
{
void
Router_Init(py::module& mod)
{
py::class_<Router, std::shared_ptr<Router>>(mod, "Router")
.def("rc", &Router::rc)
.def("Stop", &Router::Stop)
.def("peerDb", &Router::peerDb);
}
} // namespace llarp
namespace tooling
{
void
HiveRouter_Init(py::module& mod)
{
py::class_<HiveRouter, llarp::Router, std::shared_ptr<HiveRouter>>(mod, "HiveRouter")
.def("disableGossiping", &HiveRouter::disableGossiping)
.def("enableGossiping", &HiveRouter::enableGossiping);
}
} // namespace tooling