blob: bf7b448cb9aeb41dd00a1d3be7ec6af4ef85d096 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <vector>
namespace ipmiblob
{
class IpmiInterface
{
public:
virtual ~IpmiInterface() = default;
/**
* Send an IPMI packet to the BMC.
*
* @param[in] data - a vector of the IPMI packet contents.
* @return the bytes returned.
* @throws IpmiException on failure.
*/
virtual std::vector<std::uint8_t>
sendPacket(std::vector<std::uint8_t>& data) = 0;
};
} // namespace ipmiblob