blob: 19563e350588accc2e8095c2a14eac7443a54bf1 [file] [log] [blame]
Lei YUcfc040c2019-10-29 17:10:26 +08001#pragma once
Cheng C Yange83604b2020-01-09 09:41:47 +08002#include <array>
Lei YUcfc040c2019-10-29 17:10:26 +08003/* const expressions shared in this repository */
4
5constexpr auto ASSOCIATION_IFACE = "xyz.openbmc_project.Association";
6constexpr auto LOGGING_IFACE = "xyz.openbmc_project.Logging.Entry";
7constexpr auto INVENTORY_IFACE = "xyz.openbmc_project.Inventory.Item";
8constexpr auto POWER_IFACE = "org.openbmc.control.Power";
9constexpr auto INVENTORY_MGR_IFACE = "xyz.openbmc_project.Inventory.Manager";
10constexpr auto ASSET_IFACE = "xyz.openbmc_project.Inventory.Decorator.Asset";
Lei YUe8c9cd62019-11-04 14:24:41 +080011constexpr auto PSU_INVENTORY_IFACE =
12 "xyz.openbmc_project.Inventory.Item.PowerSupply";
George Liu070c1bc2020-10-12 11:28:01 +080013constexpr auto OPERATIONAL_STATE_IFACE =
14 "xyz.openbmc_project.State.Decorator.OperationalStatus";
Brandon Wyman1d7a7df2020-03-26 10:14:05 -050015constexpr auto VERSION_IFACE = "xyz.openbmc_project.Software.Version";
Matt Spinler0975eaf2022-02-14 15:38:30 -060016constexpr auto AVAILABILITY_IFACE =
17 "xyz.openbmc_project.State.Decorator.Availability";
Brandon Wyman1d7a7df2020-03-26 10:14:05 -050018#ifdef IBM_VPD
19constexpr auto DINF_IFACE = "com.ibm.ipzvpd.DINF";
20constexpr auto VINI_IFACE = "com.ibm.ipzvpd.VINI";
21#endif
Lei YUcfc040c2019-10-29 17:10:26 +080022
23constexpr auto ENDPOINTS_PROP = "endpoints";
24constexpr auto MESSAGE_PROP = "Message";
25constexpr auto RESOLVED_PROP = "Resolved";
26constexpr auto PRESENT_PROP = "Present";
George Liu070c1bc2020-10-12 11:28:01 +080027constexpr auto FUNCTIONAL_PROP = "Functional";
Matt Spinler0975eaf2022-02-14 15:38:30 -060028constexpr auto AVAILABLE_PROP = "Available";
Lei YUcfc040c2019-10-29 17:10:26 +080029
30constexpr auto INVENTORY_OBJ_PATH = "/xyz/openbmc_project/inventory";
31constexpr auto POWER_OBJ_PATH = "/org/openbmc/control/power0";
32
33constexpr auto INPUT_HISTORY = "input_history";
Cheng C Yange83604b2020-01-09 09:41:47 +080034
35constexpr std::array<const char*, 1> psuEventInterface = {
36 "xyz.openbmc_project.State.Decorator.OperationalStatus"};