fw-update : Optimize passing infra parameters
Refactor UpdateManager and DeviceUpdater to optimize passing the D-Bus event
loop handle, handler for requester and instance ID requester.
Signed-off-by: Tom Joseph <rushtotom@gmail.com>
Change-Id: I1860ffc49513d941af372423a197b1d42eda6e36
diff --git a/fw-update/update_manager.cpp b/fw-update/update_manager.cpp
index 42e2156..5e9e98a 100644
--- a/fw-update/update_manager.cpp
+++ b/fw-update/update_manager.cpp
@@ -145,12 +145,11 @@
const auto& fwDeviceIDRecord =
fwDeviceIDRecords[deviceUpdaterInfo.second];
auto search = componentInfoMap.find(deviceUpdaterInfo.first);
- deviceUpdaterMap.emplace(deviceUpdaterInfo.first,
- std::make_unique<DeviceUpdater>(
- deviceUpdaterInfo.first, event, requester,
- handler, package, fwDeviceIDRecord,
- compImageInfos, search->second,
- MAXIMUM_TRANSFER_SIZE, this));
+ deviceUpdaterMap.emplace(
+ deviceUpdaterInfo.first,
+ std::make_unique<DeviceUpdater>(
+ deviceUpdaterInfo.first, package, fwDeviceIDRecord,
+ compImageInfos, search->second, MAXIMUM_TRANSFER_SIZE, this));
}
fwPackageFilePath = packageFilePath;