blob: c743e3ecf6cdcff5f54d873bcadefcb9e85431ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#pragma once
#include <string>
#include <tuple>
namespace phosphor
{
namespace fan
{
namespace presence
{
/** @brief PrettyName and inventory path. */
using Fan = std::tuple<std::string, std::string>;
/**
* @brief Update the presence state.
*
* Update the Present property of the
* xyz.openbmc_project.Inventory.Item interface.
*
* @param[in] fan - The fan to update.
* @param[in] newState - The new state of the fan.
*/
void setPresence(const Fan& fan, bool newState);
/**
* @brief Read the presence state.
*
* Read the Present property of the
* xyz.openbmc_project.Inventory.Item
*
* @param[in] fan - The fan to read.
*/
bool getPresence(const Fan& fan);
} // namespace presence
} // namespace fan
} // namespace phosphor
|