| Tom Joseph | f8da32a | 2016-12-06 16:56:04 +0530 | [diff] [blame] | 1 | #pragma once | 
|  | 2 |  | 
|  | 3 | #include <cstddef> | 
|  | 4 | #include <vector> | 
| Tom Joseph | 83029cb | 2017-09-01 16:37:31 +0530 | [diff] [blame] | 5 | #include <sdbusplus/bus/match.hpp> | 
| Tom Joseph | f8da32a | 2016-12-06 16:56:04 +0530 | [diff] [blame] | 6 | #include "comm_module.hpp" | 
|  | 7 |  | 
|  | 8 | namespace command | 
|  | 9 | { | 
|  | 10 |  | 
|  | 11 | constexpr size_t BMC_GUID_LEN = 16; | 
|  | 12 |  | 
| Tom Joseph | 83029cb | 2017-09-01 16:37:31 +0530 | [diff] [blame] | 13 | using Guid = std::array<uint8_t, BMC_GUID_LEN>; | 
|  | 14 |  | 
| Tom Joseph | 3563f8f | 2017-05-08 15:42:54 +0530 | [diff] [blame] | 15 | /** | 
| Tom Joseph | f8da32a | 2016-12-06 16:56:04 +0530 | [diff] [blame] | 16 | * @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 Joseph | 83029cb | 2017-09-01 16:37:31 +0530 | [diff] [blame] | 21 | Guid getSystemGUID(); | 
|  | 22 |  | 
|  | 23 | /** | 
|  | 24 | *  @brief Register the callback to update the cache when the GUID changes | 
|  | 25 | */ | 
|  | 26 | void registerGUIDChangeCallback(); | 
| Tom Joseph | f8da32a | 2016-12-06 16:56:04 +0530 | [diff] [blame] | 27 |  | 
|  | 28 | } // namespace command | 
| Tom Joseph | 83029cb | 2017-09-01 16:37:31 +0530 | [diff] [blame] | 29 |  | 
|  | 30 | namespace cache | 
|  | 31 | { | 
|  | 32 |  | 
|  | 33 | extern command::Guid guid; | 
|  | 34 |  | 
|  | 35 | } //namespace cache |