summaryrefslogtreecommitdiffstats
path: root/command/guid.hpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2016-12-06 16:56:04 +0530
committerPatrick Williams <patrick@stwcx.xyz>2016-12-16 18:55:33 +0000
commitf8da32adc673d622e24219e436bedcb2f46a02f3 (patch)
treec81ab0dbf90c8090428b9b0c07bd1b79119423c5 /command/guid.hpp
parentd3e7a61727c1b5cdf6ca236c6f46620f5d5e4a70 (diff)
downloadphosphor-net-ipmid-f8da32adc673d622e24219e436bedcb2f46a02f3.tar.gz
phosphor-net-ipmid-f8da32adc673d622e24219e436bedcb2f46a02f3.zip
Implementation to read System UUID from Chassis DBUS object
Implementation for reading system UUID which would be consumed by RAKP12, RAKP34 and System GUID commands. Change-Id: Ibee1c398368f67055cdba2a0f4d16c981e38c035 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'command/guid.hpp')
-rw-r--r--command/guid.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/command/guid.hpp b/command/guid.hpp
new file mode 100644
index 0000000..03c6272
--- /dev/null
+++ b/command/guid.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <cstddef>
+#include <vector>
+
+#include "comm_module.hpp"
+
+namespace command
+{
+
+constexpr size_t BMC_GUID_LEN = 16;
+
+/*
+ * @brief Get System GUID
+ *
+ * @return If UUID is successfully read from the Chassis DBUS object, then the
+ * GUID is returned, else a canned GUID is returned
+ */
+std::array<uint8_t, BMC_GUID_LEN> getSystemGUID();
+
+} // namespace command
OpenPOWER on IntegriCloud