From 306878b1b7b46f58e43e00f304060190b6bb2412 Mon Sep 17 00:00:00 2001 From: Tom Joseph Date: Mon, 10 Jul 2017 19:30:54 +0530 Subject: Add typedef for Property name Change-Id: I5bb95bc63d33144360bc0bd147cb772622a87cda Signed-off-by: Tom Joseph --- selutility.cpp | 4 ++-- selutility.hpp | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/selutility.cpp b/selutility.cpp index f52d51e..b4675d1 100644 --- a/selutility.cpp +++ b/selutility.cpp @@ -27,7 +27,7 @@ GetSELEntryResponse prepareSELEntry( const std::string& objPath, ipmi::sensor::InvObjectIDMap::const_iterator iter) { - ipmi::sel::GetSELEntryResponse record {}; + GetSELEntryResponse record {}; sdbusplus::bus::bus bus{ipmid_get_sd_bus_connection()}; auto service = ipmi::getService(bus, logEntryIntf, objPath); @@ -46,7 +46,7 @@ GetSELEntryResponse prepareSELEntry( elog(); } - std::map entryData; + std::map entryData; reply.read(entryData); // Read Id from the log entry. diff --git a/selutility.hpp b/selutility.hpp index 164ebe6..57ed24f 100644 --- a/selutility.hpp +++ b/selutility.hpp @@ -21,8 +21,14 @@ static constexpr auto logDeleteIntf = "xyz.openbmc_project.Object.Delete"; static constexpr auto propIntf = "org.freedesktop.DBus.Properties"; using ObjectPaths = std::vector; -using PropertyType = sdbusplus::message::variant>; +using PropertyName = std::string; +using Resolved = bool; +using Id = uint32_t; +using Timestamp = uint64_t; +using Message = std::string; +using AdditionalData = std::vector; +using PropertyType = sdbusplus::message::variant; static constexpr auto selVersion = 0x51; static constexpr auto invalidTimeStamp = 0xFFFFFFFF; -- cgit v1.2.1