xref: /openbmc/openpower-vpd-parser/vpd-tool/include/tool_constants.hpp (revision 844f88f984ded76c3b68fab7356a48accb88fec3)
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 pimPersistPath = "/var/lib/phosphor-inventory-manager";
22 constexpr auto ipzVpdInfPrefix = "com.ibm.ipzvpd.";
23 
24 constexpr auto vpdManagerService = "com.ibm.VPD.Manager";
25 constexpr auto vpdManagerObjectPath = "/com/ibm/VPD/Manager";
26 constexpr auto vpdManagerInfName = "com.ibm.VPD.Manager";
27 constexpr auto inventoryItemInf = "xyz.openbmc_project.Inventory.Item";
28 constexpr auto viniInf = "com.ibm.ipzvpd.VINI";
29 constexpr auto locationCodeInf = "com.ibm.ipzvpd.Location";
30 constexpr auto assetInf = "xyz.openbmc_project.Inventory.Decorator.Asset";
31 constexpr auto objectMapperService = "xyz.openbmc_project.ObjectMapper";
32 constexpr auto objectMapperObjectPath = "/xyz/openbmc_project/object_mapper";
33 constexpr auto objectMapperInfName = "xyz.openbmc_project.ObjectMapper";
34 constexpr auto chassisStateManagerService = "xyz.openbmc_project.State.Chassis";
35 constexpr auto chassisStateManagerObjectPath =
36     "/xyz/openbmc_project/state/chassis0";
37 constexpr auto chassisStateManagerInfName = "xyz.openbmc_project.State.Chassis";
38 constexpr auto dbusService = "org.freedesktop.DBus";
39 constexpr auto dbusObjectPath = "/org/freedesktop/DBus";
40 constexpr auto dbusInterface = "org.freedesktop.DBus";
41 constexpr auto biosConfigMgrService = "xyz.openbmc_project.BIOSConfigManager";
42 constexpr auto networkInf =
43     "xyz.openbmc_project.Inventory.Item.NetworkInterface";
44 constexpr auto pcieSlotInf = "xyz.openbmc_project.Inventory.Item.PCIeSlot";
45 constexpr auto slotNumInf = "xyz.openbmc_project.Inventory.Decorator.Slot";
46 constexpr auto i2cDeviceInf =
47     "xyz.openbmc_project.Inventory.Decorator.I2CDevice";
48 constexpr auto vpdManagerProcessName = "vpd-manager";
49 } // namespace constants
50 } // namespace vpd
51