diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-11-16 15:21:13 -0600 |
---|---|---|
committer | Matthew Barth <msbarth@linux.vnet.ibm.com> | 2017-12-05 16:11:12 +0000 |
commit | 51dd1856e142d30d0d2c351f3d5eec15a11161b0 (patch) | |
tree | 7b177e113d782242c5d1ffaf46119a8e42337c3f /utility.cpp | |
parent | d5cfdbe0240f9a5cb0d29fa6e384ad19b2b32cf3 (diff) | |
download | phosphor-fan-presence-51dd1856e142d30d0d2c351f3d5eec15a11161b0.tar.gz phosphor-fan-presence-51dd1856e142d30d0d2c351f3d5eec15a11161b0.zip |
Update fan inventory method
Use the methods provided within sdbusplus.hpp to update fan inventory
along with prepping inventory to be updated for each fan rotor sensor's
functional state.
Change-Id: I7d3026d289b1dd22cd4e7b4457c4d4396309c0b5
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'utility.cpp')
-rw-r--r-- | utility.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/utility.cpp b/utility.cpp index 7da1557..249fe2f 100644 --- a/utility.cpp +++ b/utility.cpp @@ -29,15 +29,6 @@ using namespace phosphor::logging; using InternalFailure = sdbusplus::xyz::openbmc_project::Common:: Error::InternalFailure; -//TODO Should get these from phosphor-objmgr config.h -constexpr auto MAPPER_BUSNAME = "xyz.openbmc_project.ObjectMapper"; -constexpr auto MAPPER_PATH = "/xyz/openbmc_project/object_mapper"; -constexpr auto MAPPER_INTERFACE = "xyz.openbmc_project.ObjectMapper"; - -//TODO Should get these from phosphor-inventory-manager config.h -const auto INVENTORY_PATH = "/xyz/openbmc_project/inventory"s; -const auto INVENTORY_INTF = "xyz.openbmc_project.Inventory.Manager"s; - std::string getInvService(sdbusplus::bus::bus& bus) { return getService(INVENTORY_PATH, INVENTORY_INTF, bus); |