blob: 5941ef80258f5bba0be7b6ae9471811bc727a336 [file] [log] [blame]
Tom Josephf8da32a2016-12-06 16:56:04 +05301#pragma once
2
3#include <cstddef>
4#include <vector>
Tom Joseph83029cb2017-09-01 16:37:31 +05305#include <sdbusplus/bus/match.hpp>
Tom Josephf8da32a2016-12-06 16:56:04 +05306#include "comm_module.hpp"
7
8namespace command
9{
10
11constexpr size_t BMC_GUID_LEN = 16;
12
Tom Joseph83029cb2017-09-01 16:37:31 +053013using Guid = std::array<uint8_t, BMC_GUID_LEN>;
14
Tom Joseph3563f8f2017-05-08 15:42:54 +053015/**
Tom Josephf8da32a2016-12-06 16:56:04 +053016 * @brief Get System GUID
17 *
18 * @return If UUID is successfully read from the Chassis DBUS object, then the
19 * GUID is returned, else a canned GUID is returned
20 */
Tom Joseph83029cb2017-09-01 16:37:31 +053021Guid getSystemGUID();
22
23/**
24 * @brief Register the callback to update the cache when the GUID changes
25 */
26void registerGUIDChangeCallback();
Tom Josephf8da32a2016-12-06 16:56:04 +053027
28} // namespace command
Tom Joseph83029cb2017-09-01 16:37:31 +053029
30namespace cache
31{
32
33extern command::Guid guid;
34
35} //namespace cache