From 399fd92ec41cd23a9a5cb30f5d41397e5d8c6306 Mon Sep 17 00:00:00 2001 From: Tom Joseph Date: Fri, 30 Jun 2017 18:40:30 +0530 Subject: Get the timestamp from the log entry Change-Id: Id00f6e1e6f65c17babc5d06abe1b9fc39a4de8b8 Signed-off-by: Tom Joseph --- selutility.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'selutility.hpp') diff --git a/selutility.hpp b/selutility.hpp index 573e89b..09104a3 100644 --- a/selutility.hpp +++ b/selutility.hpp @@ -51,6 +51,14 @@ struct GetSELEntryResponse */ GetSELEntryResponse convertLogEntrytoSEL(const std::string& objPath); +/** @brief Get the timestamp of the log entry + * + * @param[in] objPath - DBUS object path of the logging entry. + * + * @return On success return the timestamp of the log entry as number of + * seconds from epoch. + */ +std::chrono::seconds getEntryTimeStamp(const std::string& objPath); namespace internal { @@ -68,7 +76,7 @@ GetSELEntryResponse prepareSELEntry( const std::string& objPath, ipmi::sensor::InvObjectIDMap::const_iterator iter); -} //internal +} } // namespace sel -- cgit v1.2.1