summaryrefslogtreecommitdiffstats
path: root/selutility.hpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-06-30 18:40:30 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-07-19 19:08:03 +0000
commit399fd92ec41cd23a9a5cb30f5d41397e5d8c6306 (patch)
tree5779770dd8ce74fcf4b921ca29b86a93f17471f9 /selutility.hpp
parentdcb106713ca9dd63db9f88c4fe92d543e927388d (diff)
downloadphosphor-host-ipmid-399fd92ec41cd23a9a5cb30f5d41397e5d8c6306.tar.gz
phosphor-host-ipmid-399fd92ec41cd23a9a5cb30f5d41397e5d8c6306.zip
Get the timestamp from the log entry
Change-Id: Id00f6e1e6f65c17babc5d06abe1b9fc39a4de8b8 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'selutility.hpp')
-rw-r--r--selutility.hpp10
1 files changed, 9 insertions, 1 deletions
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
OpenPOWER on IntegriCloud