diff options
Diffstat (limited to 'monitor/fan.hpp')
-rw-r--r-- | monitor/fan.hpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/monitor/fan.hpp b/monitor/fan.hpp index 0004353..3da75cf 100644 --- a/monitor/fan.hpp +++ b/monitor/fan.hpp @@ -15,6 +15,17 @@ namespace monitor { /** + * The mode fan monitor will run in: + * - init - only do the initialization steps + * - monitor - run normal monitoring algorithm + */ +enum class Mode +{ + init, + monitor +}; + +/** * @class InvalidSensorError * * An exception type for sensors that don't exist or @@ -75,11 +86,13 @@ class Fan /** * @brief Constructor * + * @param mode - mode of fan monitor * @param bus - the dbus object * @param events - pointer to sd_event object * @param def - the fan definition structure */ - Fan(sdbusplus::bus::bus& bus, + Fan(Mode mode, + sdbusplus::bus::bus& bus, phosphor::fan::event::EventPtr& events, const FanDefinition& def); |