diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-02-27 04:58:18 -0600 |
---|---|---|
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-03-15 09:20:14 -0500 |
commit | 35b4637933f3be00987804e3a875fb55ca025aee (patch) | |
tree | dab29fed782aa60334488aa95ae49ddb3df95455 /elog_entry.hpp | |
parent | b388da6553fac65a50ce02ca4d87b31fb5c9faeb (diff) | |
download | phosphor-logging-35b4637933f3be00987804e3a875fb55ca025aee.tar.gz phosphor-logging-35b4637933f3be00987804e3a875fb55ca025aee.zip |
Entry ctor: accept associations
Pass a list of associations to the Entry ctor. This enables to create
associations between the error object and other objects, if such
associations exist.
Change-Id: I88a517efc0ead0a62b2e6558822d94b8fc1c6070
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'elog_entry.hpp')
-rw-r--r-- | elog_entry.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/elog_entry.hpp b/elog_entry.hpp index 5968145..79ddf00 100644 --- a/elog_entry.hpp +++ b/elog_entry.hpp @@ -14,6 +14,9 @@ using EntryIfaces = sdbusplus::server::object::object< sdbusplus::xyz::openbmc_project::Logging::server::Entry, sdbusplus::org::openbmc::server::Associations>; +using AssociationList = + std::vector<std::tuple<std::string, std::string, std::string>>; + /** @class Entry * @brief OpenBMC logging entry implementation. * @details A concrete implementation for the @@ -47,7 +50,8 @@ class Entry : public EntryIfaces uint64_t timestampErr, Level severityErr, std::string&& msgErr, - std::vector<std::string>&& additionalDataErr) : + std::vector<std::string>&& additionalDataErr, + AssociationList&& objects) : EntryIfaces(bus, path.c_str(), true) { id(idErr); @@ -55,6 +59,7 @@ class Entry : public EntryIfaces timestamp(timestampErr); message(std::move(msgErr)); additionalData(std::move(additionalDataErr)); + associations(std::move(objects)); // Emit deferred signal. this->emit_object_added(); |