| 201 | } |
| 202 | |
| 203 | inline void ExportRpcServiceBase(pybind11::object m) { |
| 204 | using aimrt::rpc::ServiceBase; |
| 205 | |
| 206 | pybind11::class_<ServiceBase>(std::move(m), "ServiceBase") |
| 207 | .def(pybind11::init<std::string_view, std::string_view>()) |
| 208 | .def("RpcType", &ServiceBase::RpcType) |
| 209 | .def("ServiceName", &ServiceBase::ServiceName) |
| 210 | .def("SetServiceName", &ServiceBase::SetServiceName) |
| 211 | .def("PbRegisterServiceFunc", &PbRpcServiceBaseRegisterServiceFunc); |
| 212 | } |
| 213 | |
| 214 | inline void ExportRpcHandleRef(pybind11::object m) { |
| 215 | using aimrt::rpc::RpcHandleRef; |