diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2017-01-08 15:14:02 -0600 |
---|---|---|
committer | Adriana Kobylak <anoo@us.ibm.com> | 2017-01-30 12:57:25 -0600 |
commit | df995faf2588743c187066b505e95e9f56f6f5ae (patch) | |
tree | c35c04151509ec558d788658d8da2c8ca5d0bdf0 /elog_entry.hpp | |
parent | f477fe2945bdbd24817bdc690c17242e30069f4f (diff) | |
download | phosphor-logging-df995faf2588743c187066b505e95e9f56f6f5ae.tar.gz phosphor-logging-df995faf2588743c187066b505e95e9f56f6f5ae.zip |
Entry: Setup constructor
Persist the log manager dbus bus and create a
vector of Entry instances to store the Entry
dbus objects as they get created.
Change-Id: I4add43c4ce6795b6ec6c041e41cd7455d34b3b6b
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'elog_entry.hpp')
-rw-r--r-- | elog_entry.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/elog_entry.hpp b/elog_entry.hpp index 6c0e52e..bd3915c 100644 --- a/elog_entry.hpp +++ b/elog_entry.hpp @@ -24,8 +24,7 @@ using EntryIface = * @details A concrete implementation for the * xyz.openbmc_project.Logging.Entry DBus API. */ -class Entry final : - public details::ServerObject<details::EntryIface> +class Entry : public details::ServerObject<details::EntryIface> { public: Entry() = delete; @@ -35,11 +34,12 @@ class Entry final : Entry& operator=(Entry&&) = delete; virtual ~Entry() = default; - /** @brief Constructor for the Log Entry object - * @param[in] bus - DBus bus to attach to. - * @param[in] obj - Object path to attach to. + /** @brief Constructor to put object onto bus at a dbus path. + * @param[in] bus - Bus to attach to. + * @param[in] path - Path to attach at. */ - Entry(sdbusplus::bus::bus& bus, const char* obj); + Entry(sdbusplus::bus::bus& bus, const char* path) : + details::ServerObject<details::EntryIface>(bus, path) {}; }; } // namespace logging |