DevMgr: Make vectors hold sh_ptr and not uniq_ptr

This allows us to mirror the contents of the two lists into the unified
list much more easily.
This commit is contained in:
2025-01-13 08:02:59 -04:00
parent edf51a4441
commit 660f0f0e73
6 changed files with 21 additions and 44 deletions
+4 -6
View File
@@ -207,8 +207,7 @@ void SenseApiManager::finalizeAllSenseApiLibs(void)
}
}
void SenseApiManager::attachSenseDevice(
const SenseDeviceSpec& spec)
void SenseApiManager::attachSenseDevice(const SenseDeviceSpec& spec)
{
auto libOpt = getSenseApiLibByApiName(spec.api);
if (!libOpt)
@@ -228,8 +227,7 @@ void SenseApiManager::attachSenseDevice(
lib.getSenseApiDesc()->sal_mgmt_libOps->attachDeviceReq(&cSpec);
}
void SenseApiManager::detachSenseDevice(
const SenseDeviceSpec& spec)
void SenseApiManager::detachSenseDevice(const SenseDeviceSpec& spec)
{
auto libOpt = getSenseApiLibByApiName(spec.api);
if (!libOpt)
@@ -252,14 +250,14 @@ void SenseApiManager::detachSenseDevice(
void SenseApiManager::attachAllSenseDevicesFromSpecs(void)
{
for (const auto& spec : DeviceManager::senseDeviceSpecs) {
attachSenseDevice(spec.get());
attachSenseDevice(*spec);
}
}
void SenseApiManager::detachAllSenseDevices(void)
{
for (const auto& spec : DeviceManager::senseDeviceSpecs) {
detachSenseDevice(spec.get());
detachSenseDevice(*spec);
}
}