mirror of https://github.com/oxen-io/lokinet
make it compile
parent
fc0dfb6e3d
commit
26c1670af7
@ -1,20 +0,0 @@
|
||||
#include "common.hpp"
|
||||
#include <llarp.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
namespace simulate
|
||||
{
|
||||
void
|
||||
SimContext_Init(py::module& mod)
|
||||
{
|
||||
py::class_< Simulation, Sim_ptr >(mod, "Simulation")
|
||||
.def(py::init<>())
|
||||
.def("AddNode", &Simulation::AddNode)
|
||||
.def("DelNode", &Simulation::DelNode);
|
||||
py::object context = py::cast(std::make_shared< Simulation >());
|
||||
mod.attr("context") = context;
|
||||
}
|
||||
|
||||
} // namespace simulate
|
||||
} // namespace llarp
|
Loading…
Reference in New Issue