| 156 | } |
| 157 | |
| 158 | inline bool PbRpcHandleRefRegisterClientFunc( |
| 159 | aimrt::rpc::RpcHandleRef& rpc_handle_ref, |
| 160 | std::string_view func_name, |
| 161 | const std::shared_ptr<const PyPbTypeSupport>& req_type_support, |
| 162 | const std::shared_ptr<const PyPbTypeSupport>& rsp_type_support) { |
| 163 | static std::vector<std::shared_ptr<const PyPbTypeSupport>> py_ts_vec; |
| 164 | py_ts_vec.emplace_back(req_type_support); |
| 165 | py_ts_vec.emplace_back(rsp_type_support); |
| 166 | |
| 167 | return rpc_handle_ref.RegisterClientFunc( |
| 168 | func_name, |
| 169 | nullptr, |
| 170 | req_type_support->NativeHandle(), |
| 171 | rsp_type_support->NativeHandle()); |
| 172 | } |
| 173 | |
| 174 | inline std::tuple<aimrt::rpc::Status, pybind11::bytes> PbRpcHandleRefInvoke( |
| 175 | aimrt::rpc::RpcHandleRef& rpc_handle_ref, |
nothing calls this directly
no test coverage detected