mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-02 03:40:12 +00:00
19 lines
502 B
C++
19 lines
502 B
C++
#include "common.hpp"
|
|
#include <tooling/router_hive.hpp>
|
|
|
|
namespace tooling
|
|
{
|
|
void
|
|
RouterHive_Init(py::module& mod)
|
|
{
|
|
using RouterHive_ptr = std::shared_ptr< RouterHive >;
|
|
py::class_< RouterHive, RouterHive_ptr >(mod, "RouterHive")
|
|
.def(py::init<>())
|
|
.def("AddRouter", &RouterHive::AddRouter)
|
|
.def("StartAll", &RouterHive::StartRouters)
|
|
.def("StopAll", &RouterHive::StopRouters)
|
|
.def("GetNextEvent", &RouterHive::GetNextEvent);
|
|
|
|
}
|
|
}
|