xref: /openbmc/openpower-vpd-parser/vpd-tool/include/tool_constants.hpp (revision fa5e4d325ef9cea3c841fe89d202c340f92bd8c6)
1 #pragma once
2 
3 #include <cstdint>
4 
5 namespace vpd
6 {
7 namespace constants
8 {
9 static constexpr auto KEYWORD_SIZE = 2;
10 static constexpr auto RECORD_SIZE = 4;
11 static constexpr auto INDENTATION = 4;
12 static constexpr auto SUCCESS = 0;
13 static constexpr auto FAILURE = -1;
14 
15 // To be explicitly used for string comparison.
16 static constexpr auto STR_CMP_SUCCESS = 0;
17 
18 constexpr auto inventoryManagerService =
19     "xyz.openbmc_project.Inventory.Manager";
20 constexpr auto baseInventoryPath = "/xyz/openbmc_project/inventory";
21 constexpr auto ipzVpdInfPrefix = "com.ibm.ipzvpd.";
22 
23 constexpr auto vpdManagerService = "com.ibm.VPD.Manager";
24 constexpr auto vpdManagerObjectPath = "/com/ibm/VPD/Manager";
25 constexpr auto vpdManagerInfName = "com.ibm.VPD.Manager";
26 constexpr auto inventoryItemInf = "xyz.openbmc_project.Inventory.Item";
27 constexpr auto kwdVpdInf = "com.ibm.ipzvpd.VINI";
28 constexpr auto locationCodeInf = "com.ibm.ipzvpd.Location";
29 constexpr auto assetInf = "xyz.openbmc_project.Inventory.Decorator.Asset";
30 constexpr auto objectMapperService = "xyz.openbmc_project.ObjectMapper";
31 constexpr auto objectMapperObjectPath = "/xyz/openbmc_project/object_mapper";
32 constexpr auto objectMapperInfName = "xyz.openbmc_project.ObjectMapper";
33 } // namespace constants
34 } // namespace vpd
35