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. |
Patrick Venture | 035bbbb | 2018-12-12 14:59:52 -0800 | [diff] [blame] | 15 | * @return the bytes returned. |
| 16 | * @throws IpmiException on failure. |
Patrick Venture | cf2d1b1 | 2018-12-11 18:22:36 -0800 | [diff] [blame] | 17 | */ |
Patrick Venture | 035bbbb | 2018-12-12 14:59:52 -0800 | [diff] [blame] | 18 | virtual std::vector<std::uint8_t> |
| 19 | sendPacket(const std::vector<std::uint8_t>& data) = 0; |
Patrick Venture | cf2d1b1 | 2018-12-11 18:22:36 -0800 | [diff] [blame] | 20 | }; |