item_updater: Add version dbus object.
Need to create the Version object under itemUpdater
class to retain the version of the active images
after the bmc is rebooted and the image_dir no
longer holds the image files.
Change-Id: Iac78d577b970c6fa766b94041742f77077b14e62
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/item_updater.hpp b/item_updater.hpp
index 82df3e7..233f022 100755
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -3,6 +3,7 @@
#include <sdbusplus/server.hpp>
#include "activation.hpp"
#include <xyz/openbmc_project/Common/FactoryReset/server.hpp>
+#include "version.hpp"
namespace openpower
{
@@ -73,6 +74,10 @@
* version id */
std::map<std::string, std::unique_ptr<Activation>> activations;
+ /** @brief Persistent map of Version dbus objects and their
+ * version id */
+ std::map<std::string, std::unique_ptr<Version>> versions;
+
/** @brief sdbusplus signal match for Software.Version */
sdbusplus::bus::match_t versionMatch;