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:
2025-09-28 01:15:36 -04:00
parent 1a56e2a107
commit 51b70b179c
2 changed files with 14 additions and 7 deletions
+8 -3
View File
@@ -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