blob: 1379f90c7fea3974f07e825fcbf86b9616361ef8 [file] [log] [blame]
Deepak Kodihalli86c73882016-11-21 05:11:31 -06001#pragma once
2
SunnySrivastava1984f6d541e2020-02-04 12:50:40 -06003#include "const.hpp"
Deepak Kodihalli86c73882016-11-21 05:11:31 -06004#include "store.hpp"
5
Patrick Venturec83c4dc2018-11-01 16:29:18 -07006#include <vector>
7
Deepak Kodihalli86c73882016-11-21 05:11:31 -06008namespace openpower
9{
10namespace vpd
11{
12
Alpana Kumari26a74af2019-09-10 23:53:58 -050013/** @brief API to parse VPD
Deepak Kodihalli86c73882016-11-21 05:11:31 -060014 *
Alpana Kumari26a74af2019-09-10 23:53:58 -050015 * @param [in] vpd - VPD in binary format
Deepak Kodihalli86c73882016-11-21 05:11:31 -060016 * @returns A Store object, which provides access to
Alpana Kumari26a74af2019-09-10 23:53:58 -050017 * the parsed VPD.
Deepak Kodihalli86c73882016-11-21 05:11:31 -060018 */
19Store parse(Binary&& vpd);
20
SunnySrivastava1984f6d541e2020-02-04 12:50:40 -060021namespace keyword
22{
23namespace editor
24{
25using namespace openpower::vpd::constants;
26/** @brief API to check vpd header
27 * @param [in] vpd - VPDheader in binary format
28 */
29void processHeader(Binary&& vpd);
30
31} // namespace editor
32} // namespace keyword
33
Deepak Kodihalli86c73882016-11-21 05:11:31 -060034} // namespace vpd
35} // namespace openpower