Skip to content

Commit

Permalink
added NameDependency handle in python module
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Jan 25, 2024
1 parent 8ce61ca commit 37d7eda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/src/py-bedrock-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ PYBIND11_MODULE(pybedrock_server, m) {
[](std::shared_ptr<NamedDependency> nd) { return nd->getName(); })
.def_property_readonly("type",
[](std::shared_ptr<NamedDependency> nd) { return nd->getType(); })
.def_property_readonly("handle",
[](std::shared_ptr<NamedDependency> nd) { return nd->getHandle<intptr_t>(); })
;

py11::class_<ProviderDependency, std::shared_ptr<ProviderDependency>> (m, "ProviderDependency", named_dep)
Expand Down

0 comments on commit 37d7eda

Please sign in to comment.