DevMgr: attachAllUnattachedDevsFrom: now takes sh_ptr<vector<Spec>>

This method now accepts a sh_ptr<vector<DeviceAttachmentSpec>> to
tell it specifically which specs to attempt to attach.

This enables us to implement different frontends that supply it
with collections of devices from different sources (GUI, cmdline,
previously failed-to-attach/hot-removed devices, etc).

SMO temporarily initializes none of the devices from the cmdline
during this commit as we transition to implementing the cmdline
collection frontend.
This commit is contained in:
2025-09-28 12:39:45 -04:00
parent 2c60248127
commit b43ffcb677
3 changed files with 24 additions and 9 deletions
+1
View File
@@ -79,6 +79,7 @@ public:
<< '\n';
}
device::DeviceManager::getInstance().attachAllUnattachedDevicesFromReq(
std::make_shared<std::vector<device::DeviceAttachmentSpec>>(),
{context, std::bind(
&InitializeReq::initializeReq2,
context.get(), context,