| Matt Spinler | 76e73c2 | 2021-04-21 11:03:05 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| 3 | #include "power_state.hpp" | ||||
| 4 | |||||
| 5 | namespace phosphor::fan | ||||
| 6 | { | ||||
| 7 | |||||
| 8 | /** | ||||
| 9 | * @brief Returns the PowerState object as a shared_ptr. | ||||
| 10 | * | ||||
| 11 | * Callers can use addCallback() on the return object to | ||||
| 12 | * have functions run when the power state changes. | ||||
| 13 | * | ||||
| 14 | * @return shared_ptr<PowerState> | ||||
| 15 | */ | ||||
| 16 | std::shared_ptr<PowerState> getPowerStateObject(); | ||||
| 17 | |||||
| 18 | } // namespace phosphor::fan | ||||