Deepak Kodihalli | 86c7388 | 2016-11-21 05:11:31 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
SunnySrivastava1984 | f6d541e | 2020-02-04 12:50:40 -0600 | [diff] [blame] | 3 | #include "const.hpp" |
Deepak Kodihalli | 86c7388 | 2016-11-21 05:11:31 -0600 | [diff] [blame] | 4 | #include "store.hpp" |
| 5 | |
Patrick Venture | c83c4dc | 2018-11-01 16:29:18 -0700 | [diff] [blame] | 6 | #include <vector> |
| 7 | |
Deepak Kodihalli | 86c7388 | 2016-11-21 05:11:31 -0600 | [diff] [blame] | 8 | namespace openpower |
| 9 | { |
| 10 | namespace vpd |
| 11 | { |
| 12 | |
Alpana Kumari | 26a74af | 2019-09-10 23:53:58 -0500 | [diff] [blame] | 13 | /** @brief API to parse VPD |
Deepak Kodihalli | 86c7388 | 2016-11-21 05:11:31 -0600 | [diff] [blame] | 14 | * |
Alpana Kumari | 26a74af | 2019-09-10 23:53:58 -0500 | [diff] [blame] | 15 | * @param [in] vpd - VPD in binary format |
Deepak Kodihalli | 86c7388 | 2016-11-21 05:11:31 -0600 | [diff] [blame] | 16 | * @returns A Store object, which provides access to |
Alpana Kumari | 26a74af | 2019-09-10 23:53:58 -0500 | [diff] [blame] | 17 | * the parsed VPD. |
Deepak Kodihalli | 86c7388 | 2016-11-21 05:11:31 -0600 | [diff] [blame] | 18 | */ |
| 19 | Store parse(Binary&& vpd); |
| 20 | |
SunnySrivastava1984 | f6d541e | 2020-02-04 12:50:40 -0600 | [diff] [blame] | 21 | namespace keyword |
| 22 | { |
| 23 | namespace editor |
| 24 | { |
| 25 | using namespace openpower::vpd::constants; |
| 26 | /** @brief API to check vpd header |
| 27 | * @param [in] vpd - VPDheader in binary format |
| 28 | */ |
| 29 | void processHeader(Binary&& vpd); |
| 30 | |
| 31 | } // namespace editor |
| 32 | } // namespace keyword |
| 33 | |
Deepak Kodihalli | 86c7388 | 2016-11-21 05:11:31 -0600 | [diff] [blame] | 34 | } // namespace vpd |
| 35 | } // namespace openpower |