Update OperationalStatus interface according to the Present property value
When the Present property value changes, the corresponding OperationalStatus
interface needs to be updated at the same time.
Refer to:
https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/
openbmc_project/State/Decorator/OperationalStatus.interface.yaml
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I9eee9196125cf82605b20009b49a3ed7f65be53a
diff --git a/types.hpp b/types.hpp
index df67013..b79bbb9 100644
--- a/types.hpp
+++ b/types.hpp
@@ -10,6 +10,8 @@
constexpr auto ASSET_IFACE = "xyz.openbmc_project.Inventory.Decorator.Asset";
constexpr auto PSU_INVENTORY_IFACE =
"xyz.openbmc_project.Inventory.Item.PowerSupply";
+constexpr auto OPERATIONAL_STATE_IFACE =
+ "xyz.openbmc_project.State.Decorator.OperationalStatus";
constexpr auto VERSION_IFACE = "xyz.openbmc_project.Software.Version";
#ifdef IBM_VPD
constexpr auto DINF_IFACE = "com.ibm.ipzvpd.DINF";
@@ -20,6 +22,7 @@
constexpr auto MESSAGE_PROP = "Message";
constexpr auto RESOLVED_PROP = "Resolved";
constexpr auto PRESENT_PROP = "Present";
+constexpr auto FUNCTIONAL_PROP = "Functional";
constexpr auto INVENTORY_OBJ_PATH = "/xyz/openbmc_project/inventory";
constexpr auto POWER_OBJ_PATH = "/org/openbmc/control/power0";