Files
hayodea 51b70b179c 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()
2025-09-28 01:15:36 -04:00

29 lines
505 B
C++

#ifndef DEVICEROLE_H
#define DEVICEROLE_H
#include <memory>
#include <user/deviceAttachmentSpec.h>
namespace smo {
namespace device {
class Device; // Forward declaration
class DeviceRole
{
public:
DeviceRole(
Device& parentDevice,
std::shared_ptr<DeviceAttachmentSpec>& spec)
: parentDevice(parentDevice), deviceAttachmentSpec(spec)
{}
Device& parentDevice;
std::shared_ptr<DeviceAttachmentSpec> deviceAttachmentSpec;
};
} // namespace device
} // namespace smo
#endif // DEVICEROLE_H