blob: 7fe01906c921c21506b345e761f547aa581ccb98 [file] [log] [blame]
Sunny Srivastavafa5e4d32023-03-12 11:59:49 -05001#pragma once
2
3#include <cstdint>
4
5namespace vpd
6{
7namespace constants
8{
9static constexpr auto KEYWORD_SIZE = 2;
10static constexpr auto RECORD_SIZE = 4;
11static constexpr auto INDENTATION = 4;
12static constexpr auto SUCCESS = 0;
13static constexpr auto FAILURE = -1;
14
15// To be explicitly used for string comparison.
16static constexpr auto STR_CMP_SUCCESS = 0;
17
18constexpr auto inventoryManagerService =
19 "xyz.openbmc_project.Inventory.Manager";
20constexpr auto baseInventoryPath = "/xyz/openbmc_project/inventory";
Anupama B R844f88f2025-01-26 02:47:06 -060021constexpr auto pimPersistPath = "/var/lib/phosphor-inventory-manager";
Sunny Srivastavafa5e4d32023-03-12 11:59:49 -050022constexpr auto ipzVpdInfPrefix = "com.ibm.ipzvpd.";
23
24constexpr auto vpdManagerService = "com.ibm.VPD.Manager";
25constexpr auto vpdManagerObjectPath = "/com/ibm/VPD/Manager";
26constexpr auto vpdManagerInfName = "com.ibm.VPD.Manager";
27constexpr auto inventoryItemInf = "xyz.openbmc_project.Inventory.Item";
Sunny Srivastavadf9e5542025-02-12 12:33:07 -060028constexpr auto viniInf = "com.ibm.ipzvpd.VINI";
Sunny Srivastavafa5e4d32023-03-12 11:59:49 -050029constexpr auto locationCodeInf = "com.ibm.ipzvpd.Location";
30constexpr auto assetInf = "xyz.openbmc_project.Inventory.Decorator.Asset";
31constexpr auto objectMapperService = "xyz.openbmc_project.ObjectMapper";
32constexpr auto objectMapperObjectPath = "/xyz/openbmc_project/object_mapper";
33constexpr auto objectMapperInfName = "xyz.openbmc_project.ObjectMapper";
Anupama B R6be2c012025-01-23 02:59:27 -060034constexpr auto chassisStateManagerService = "xyz.openbmc_project.State.Chassis";
35constexpr auto chassisStateManagerObjectPath =
36 "/xyz/openbmc_project/state/chassis0";
37constexpr auto chassisStateManagerInfName = "xyz.openbmc_project.State.Chassis";
Souvik Roy7f749a62025-02-10 22:23:41 -060038constexpr auto dbusService = "org.freedesktop.DBus";
39constexpr auto dbusObjectPath = "/org/freedesktop/DBus";
40constexpr auto dbusInterface = "org.freedesktop.DBus";
41constexpr auto biosConfigMgrService = "xyz.openbmc_project.BIOSConfigManager";
Sunny Srivastavadf9e5542025-02-12 12:33:07 -060042constexpr auto networkInf =
43 "xyz.openbmc_project.Inventory.Item.NetworkInterface";
44constexpr auto pcieSlotInf = "xyz.openbmc_project.Inventory.Item.PCIeSlot";
45constexpr auto slotNumInf = "xyz.openbmc_project.Inventory.Decorator.Slot";
46constexpr auto i2cDeviceInf =
47 "xyz.openbmc_project.Inventory.Decorator.I2CDevice";
Anupama B R844f88f2025-01-26 02:47:06 -060048constexpr auto vpdManagerProcessName = "vpd-manager";
Sunny Srivastavafa5e4d32023-03-12 11:59:49 -050049} // namespace constants
50} // namespace vpd