Patrick Venture | cf2d1b1 | 2018-12-11 18:22:36 -0800 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include <cstdint> | ||||
4 | #include <vector> | ||||
5 | |||||
6 | class IpmiInterface | ||||
7 | { | ||||
8 | public: | ||||
9 | virtual ~IpmiInterface() = default; | ||||
10 | |||||
11 | /** | ||||
12 | * Send an IPMI packet to the BMC. | ||||
13 | * | ||||
14 | * @param[in] data - a vector of the IPMI packet contents. | ||||
15 | * @return non-zero on failure. | ||||
16 | */ | ||||
17 | virtual int sendPacket(const std::vector<std::uint8_t>& data) = 0; | ||||
18 | }; |