xref: /openbmc/openpower-vpd-parser/vpd-tool/include/tool_constants.hpp (revision 022112bc235c7f91ee998bb131f06e212dee1f6a)
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 viniInf = "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 constexpr auto chassisStateManagerService = "xyz.openbmc_project.State.Chassis";
34 constexpr auto chassisStateManagerObjectPath =
35     "/xyz/openbmc_project/state/chassis0";
36 constexpr auto chassisStateManagerInfName = "xyz.openbmc_project.State.Chassis";
37 constexpr auto dbusService = "org.freedesktop.DBus";
38 constexpr auto dbusObjectPath = "/org/freedesktop/DBus";
39 constexpr auto dbusInterface = "org.freedesktop.DBus";
40 constexpr auto biosConfigMgrService = "xyz.openbmc_project.BIOSConfigManager";
41 constexpr auto networkInf =
42     "xyz.openbmc_project.Inventory.Item.NetworkInterface";
43 constexpr auto pcieSlotInf = "xyz.openbmc_project.Inventory.Item.PCIeSlot";
44 constexpr auto slotNumInf = "xyz.openbmc_project.Inventory.Decorator.Slot";
45 constexpr auto i2cDeviceInf =
46     "xyz.openbmc_project.Inventory.Decorator.I2CDevice";
47 } // namespace constants
48 } // namespace vpd
49