Entry: Populate properties
Create an Entry dbus object when Commit is called and fill in
its properties with the journal data.
Change-Id: I155cacbdfdccfa8b1f594503d858710fa71f2026
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/log_manager.hpp b/log_manager.hpp
index 4ad0ced..43070ff 100644
--- a/log_manager.hpp
+++ b/log_manager.hpp
@@ -38,9 +38,10 @@
* @param[in] bus - Bus to attach to.
* @param[in] path - Path to attach at.
*/
- Manager(sdbusplus::bus::bus& bus, const char* path) :
- details::ServerObject<details::ManagerIface>(bus, path),
- busLog(bus) {};
+ Manager(sdbusplus::bus::bus& bus, const char* objPath) :
+ details::ServerObject<details::ManagerIface>(bus, objPath),
+ busLog(bus),
+ entryId(0) {};
/*
* @fn commit()
@@ -61,6 +62,9 @@
/** @brief Persistent map of Entry dbus objects and their ID */
std::map<uint32_t, std::unique_ptr<Entry>> entries;
+
+ /** @brief Id of last error log entry */
+ uint32_t entryId;
};
} // namespace logging