51b70b179c
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()
29 lines
505 B
C++
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
|