diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2017-01-10 12:52:34 -0600 |
---|---|---|
committer | Adriana Kobylak <anoo@us.ibm.com> | 2017-02-14 09:18:31 -0600 |
commit | 4ea7f312c508af64634a3e308b8641d39c581e37 (patch) | |
tree | b91b350559e3025811060705d1dbb9f0d90f76d1 /log_manager.hpp | |
parent | 9316b9ac43d704a66591ae5e755599db8acef632 (diff) | |
download | phosphor-logging-4ea7f312c508af64634a3e308b8641d39c581e37.tar.gz phosphor-logging-4ea7f312c508af64634a3e308b8641d39c581e37.zip |
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>
Diffstat (limited to 'log_manager.hpp')
-rw-r--r-- | log_manager.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
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 @@ class Manager : public details::ServerObject<details::ManagerIface> * @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 @@ class Manager : public details::ServerObject<details::ManagerIface> /** @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 |