blob: 422852a79b25cbd38238019311574a9301babf76 [file] [log] [blame]
Matt Spinler76e73c22021-04-21 11:03:05 -05001#pragma once
2
3#include "power_state.hpp"
4
5namespace 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 */
16std::shared_ptr<PowerState> getPowerStateObject();
17
18} // namespace phosphor::fan