Lei YU | cfc040c | 2019-10-29 17:10:26 +0800 | [diff] [blame] | 1 | #pragma once |
Cheng C Yang | e83604b | 2020-01-09 09:41:47 +0800 | [diff] [blame] | 2 | #include <array> |
Lei YU | cfc040c | 2019-10-29 17:10:26 +0800 | [diff] [blame] | 3 | /* const expressions shared in this repository */ |
| 4 | |
| 5 | constexpr auto ASSOCIATION_IFACE = "xyz.openbmc_project.Association"; |
| 6 | constexpr auto LOGGING_IFACE = "xyz.openbmc_project.Logging.Entry"; |
| 7 | constexpr auto INVENTORY_IFACE = "xyz.openbmc_project.Inventory.Item"; |
| 8 | constexpr auto POWER_IFACE = "org.openbmc.control.Power"; |
| 9 | constexpr auto INVENTORY_MGR_IFACE = "xyz.openbmc_project.Inventory.Manager"; |
| 10 | constexpr auto ASSET_IFACE = "xyz.openbmc_project.Inventory.Decorator.Asset"; |
Lei YU | e8c9cd6 | 2019-11-04 14:24:41 +0800 | [diff] [blame] | 11 | constexpr auto PSU_INVENTORY_IFACE = |
| 12 | "xyz.openbmc_project.Inventory.Item.PowerSupply"; |
George Liu | 070c1bc | 2020-10-12 11:28:01 +0800 | [diff] [blame^] | 13 | constexpr auto OPERATIONAL_STATE_IFACE = |
| 14 | "xyz.openbmc_project.State.Decorator.OperationalStatus"; |
Brandon Wyman | 1d7a7df | 2020-03-26 10:14:05 -0500 | [diff] [blame] | 15 | constexpr auto VERSION_IFACE = "xyz.openbmc_project.Software.Version"; |
| 16 | #ifdef IBM_VPD |
| 17 | constexpr auto DINF_IFACE = "com.ibm.ipzvpd.DINF"; |
| 18 | constexpr auto VINI_IFACE = "com.ibm.ipzvpd.VINI"; |
| 19 | #endif |
Lei YU | cfc040c | 2019-10-29 17:10:26 +0800 | [diff] [blame] | 20 | |
| 21 | constexpr auto ENDPOINTS_PROP = "endpoints"; |
| 22 | constexpr auto MESSAGE_PROP = "Message"; |
| 23 | constexpr auto RESOLVED_PROP = "Resolved"; |
| 24 | constexpr auto PRESENT_PROP = "Present"; |
George Liu | 070c1bc | 2020-10-12 11:28:01 +0800 | [diff] [blame^] | 25 | constexpr auto FUNCTIONAL_PROP = "Functional"; |
Lei YU | cfc040c | 2019-10-29 17:10:26 +0800 | [diff] [blame] | 26 | |
| 27 | constexpr auto INVENTORY_OBJ_PATH = "/xyz/openbmc_project/inventory"; |
| 28 | constexpr auto POWER_OBJ_PATH = "/org/openbmc/control/power0"; |
| 29 | |
| 30 | constexpr auto INPUT_HISTORY = "input_history"; |
Cheng C Yang | e83604b | 2020-01-09 09:41:47 +0800 | [diff] [blame] | 31 | |
| 32 | constexpr std::array<const char*, 1> psuEventInterface = { |
| 33 | "xyz.openbmc_project.State.Decorator.OperationalStatus"}; |