blob: 2e4afe2886c13bf9e9f3fb93a107e1553bd5fd20 [file] [log] [blame]
#pragma once
#include "util_base.hpp"
#include "utility.hpp"
namespace phosphor::power::psu
{
class Util : public UtilBase
{
public:
//~Util(){};
bool getPresence(sdbusplus::bus::bus& bus,
const std::string& invpath) const override
{
bool present = false;
// Use getProperty utility function to get presence status.
util::getProperty(INVENTORY_IFACE, PRESENT_PROP, invpath,
INVENTORY_MGR_IFACE, bus, present);
return present;
}
};
} // namespace phosphor::power::psu