monitor: Track fan health in the System object
To prepare for being able to power off the system based on missing fans
or nonfunctional fan sensors, put a global view of this health for all
fans in the System object. This requires now keeping track of fan
presence.
This information is stored in a map based on the fan name. It is done
this way, as opposed to just always calling present/functional APIs on
the Fan objects, so that the code that will be using this information
can be tested in isolation without the System or Fan objects.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ieb1d4003bd13cebc806fd06f0064c63ea8ac6180
diff --git a/utility.hpp b/utility.hpp
index 4e8c226..271bb9c 100644
--- a/utility.hpp
+++ b/utility.hpp
@@ -31,6 +31,8 @@
"xyz.openbmc_project.State.Decorator.OperationalStatus";
constexpr auto FUNCTIONAL_PROPERTY = "Functional";
+constexpr auto INV_ITEM_IFACE = "xyz.openbmc_project.Inventory.Item";
+
class FileDescriptor
{
public: