| 33 | }; |
| 34 | |
| 35 | inline void ExportModuleBase(pybind11::object m) { |
| 36 | pybind11::class_<ModuleBase, PyModuleBaseAdapter, std::shared_ptr<ModuleBase>>(std::move(m), "ModuleBase") |
| 37 | .def(pybind11::init<>()) |
| 38 | .def("Info", &ModuleBase::Info) |
| 39 | .def("Initialize", &ModuleBase::Initialize) |
| 40 | .def("Start", &ModuleBase::Start) |
| 41 | .def("Shutdown", &ModuleBase::Shutdown); |
| 42 | } |
| 43 | |
| 44 | } // namespace aimrt::runtime::python_runtime |