blob: 5941ef80258f5bba0be7b6ae9471811bc727a336 [file] [log] [blame]
#pragma once
#include <cstddef>
#include <vector>
#include <sdbusplus/bus/match.hpp>
#include "comm_module.hpp"
namespace command
{
constexpr size_t BMC_GUID_LEN = 16;
using Guid = std::array<uint8_t, BMC_GUID_LEN>;
/**
* @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
*/
Guid getSystemGUID();
/**
* @brief Register the callback to update the cache when the GUID changes
*/
void registerGUIDChangeCallback();
} // namespace command
namespace cache
{
extern command::Guid guid;
} //namespace cache