SenseApis: Make attachDeviceReq async in drivers and SenseApiMgr

Slowly retrogressively making these sequences async
This commit is contained in:
2025-09-10 06:51:55 -04:00
parent 5b5a701c69
commit 1b6b12256d
9 changed files with 282 additions and 116 deletions
+9 -4
View File
@@ -34,12 +34,17 @@ struct SmoThreadingModelDesc
std::shared_ptr<ComponentThread> componentThread;
};
typedef std::function<void(bool)> sal_mlo_attachDeviceReqCbFn;
typedef std::function<void(bool)> sal_mlo_detachDeviceReqCbFn;
typedef int (sal_mlo_initializeIndFn)(void);
typedef int (sal_mlo_finalizeIndFn)(void);
typedef int (sal_mlo_attachDeviceReqFn)(
const std::shared_ptr<device::DeviceAttachmentSpec>& desc);
typedef int (sal_mlo_detachDeviceReqFn)(
const std::shared_ptr<device::DeviceAttachmentSpec>& desc);
typedef void (sal_mlo_attachDeviceReqFn)(
const std::shared_ptr<device::DeviceAttachmentSpec>& desc,
sal_mlo_attachDeviceReqCbFn cb);
typedef void (sal_mlo_detachDeviceReqFn)(
const std::shared_ptr<device::DeviceAttachmentSpec>& desc,
sal_mlo_detachDeviceReqCbFn cb);
/**
* @brief Hooks provided by Salmanoff to senseApi libraries.