DevMgr:newDevSpecInd: fix posting and async pattern conformance
This commit is contained in:
@@ -38,10 +38,10 @@ public:
|
||||
typedef std::function<void(
|
||||
bool success, std::shared_ptr<Device> device,
|
||||
std::shared_ptr<DeviceAttachmentSpec> deviceSpec)>
|
||||
deviceAttachmentSpecIndCbFn;
|
||||
newDeviceAttachmentSpecIndCbFn;
|
||||
void newDeviceAttachmentSpecInd(
|
||||
std::shared_ptr<DeviceAttachmentSpec> spec,
|
||||
deviceAttachmentSpecIndCbFn callback);
|
||||
newDeviceAttachmentSpecIndCbFn callback);
|
||||
|
||||
private:
|
||||
DeviceManager() = default;
|
||||
@@ -58,6 +58,9 @@ public:
|
||||
static std::vector<std::shared_ptr<DeviceAttachmentSpec>>
|
||||
deviceAttachmentSpecs;
|
||||
static std::vector<std::shared_ptr<Device>> devices;
|
||||
|
||||
private:
|
||||
class NewDeviceAttachmentSpecInd;
|
||||
};
|
||||
|
||||
} // namespace device
|
||||
|
||||
Reference in New Issue
Block a user