livoxProto1: export getReturnModeReq; cache result in Device

This commit is contained in:
2025-10-30 11:49:54 -04:00
parent f8c5fad841
commit f658e97ed0
4 changed files with 33 additions and 0 deletions
+14
View File
@@ -90,4 +90,18 @@ void livoxProto1_device_disablePcloudDataReq(
device->disablePcloudDataReq(callback);
}
void livoxProto1_device_getReturnModeReq(
std::shared_ptr<livoxProto1::Device> device,
smo::Callback<livoxProto1_device_getReturnModeReqCbFn> callback
)
{
if (!device)
{
throw std::runtime_error(std::string(__func__)
+ ": Device pointer is null");
}
device->getReturnModeReq(callback);
}
} // extern "C"