DevMgr: call newDevAttSpecInd & not attDevReq in body:initReq
This performs a more complete device initialization and attachment sequence. We'll do the corresponding teardown in the shutdown sequence later. We might probably do it as deviceRoleGoneAwayInd()
This commit is contained in:
@@ -7,14 +7,19 @@
|
||||
namespace smo {
|
||||
namespace device {
|
||||
|
||||
class Device; // Forward declaration
|
||||
|
||||
class DeviceRole
|
||||
{
|
||||
public:
|
||||
DeviceRole(std::shared_ptr<DeviceAttachmentSpec> spec)
|
||||
: deviceAttachmentSpec(spec)
|
||||
DeviceRole(
|
||||
Device& parentDevice,
|
||||
std::shared_ptr<DeviceAttachmentSpec>& spec)
|
||||
: parentDevice(parentDevice), deviceAttachmentSpec(spec)
|
||||
{}
|
||||
|
||||
std::shared_ptr<DeviceAttachmentSpec> deviceAttachmentSpec;
|
||||
Device& parentDevice;
|
||||
std::shared_ptr<DeviceAttachmentSpec> deviceAttachmentSpec;
|
||||
};
|
||||
|
||||
} // namespace device
|
||||
|
||||
Reference in New Issue
Block a user