Configure HiveContext it pybind correctly

pull/1312/head
Stephen Shelton 4 years ago
parent 90ec789fe9
commit 0e99f5bc86
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -45,7 +45,8 @@ namespace tooling
void void
HiveContext_Init(py::module& mod) HiveContext_Init(py::module& mod)
{ {
py::class_<tooling::HiveContext>(mod, "HiveContext") using HiveContext_ptr = std::shared_ptr<HiveContext>;
py::class_<tooling::HiveContext, HiveContext_ptr, llarp::Context>(mod, "HiveContext")
.def("getRouterAsHiveRouter", &tooling::HiveContext::getRouterAsHiveRouter); .def("getRouterAsHiveRouter", &tooling::HiveContext::getRouterAsHiveRouter);
} }
} // namespace tooling } // namespace tooling

Loading…
Cancel
Save