| 12 | namespace aimrt::runtime::python_runtime { |
| 13 | |
| 14 | inline void ExportModuleInfo(pybind11::object m) { |
| 15 | pybind11::class_<ModuleInfo>(std::move(m), "ModuleInfo") |
| 16 | .def(pybind11::init<>()) |
| 17 | .def_readwrite("name", &ModuleInfo::name) |
| 18 | .def_readwrite("major_version", &ModuleInfo::major_version) |
| 19 | .def_readwrite("minor_version", &ModuleInfo::minor_version) |
| 20 | .def_readwrite("patch_version", &ModuleInfo::patch_version) |
| 21 | .def_readwrite("build_version", &ModuleInfo::build_version) |
| 22 | .def_readwrite("author", &ModuleInfo::author) |
| 23 | .def_readwrite("description", &ModuleInfo::description); |
| 24 | } |
| 25 | |
| 26 | inline void ExportCoreRef(pybind11::object m) { |
| 27 | pybind11::class_<CoreRef>(std::move(m), "CoreRef") |