blob: 082af9c759825ab070e0fb070b077fa162f704df [file] [log] [blame]
#pragma once
#include <cstdint>
#include <vector>
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(const std::vector<std::uint8_t>& data) = 0;
};