Patrick Venture | 123b5c0 | 2019-03-05 14:01:00 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <cstdint> |
| 4 | #include <vector> |
| 5 | |
Patrick Venture | 1470bec | 2019-03-06 07:33:12 -0800 | [diff] [blame] | 6 | namespace ipmiblob |
Patrick Venture | 123b5c0 | 2019-03-05 14:01:00 -0800 | [diff] [blame] | 7 | { |
| 8 | |
| 9 | class IpmiInterface |
| 10 | { |
| 11 | public: |
| 12 | virtual ~IpmiInterface() = default; |
| 13 | |
| 14 | /** |
| 15 | * Send an IPMI packet to the BMC. |
| 16 | * |
| 17 | * @param[in] data - a vector of the IPMI packet contents. |
| 18 | * @return the bytes returned. |
| 19 | * @throws IpmiException on failure. |
| 20 | */ |
| 21 | virtual std::vector<std::uint8_t> |
| 22 | sendPacket(std::vector<std::uint8_t>& data) = 0; |
| 23 | }; |
| 24 | |
Patrick Venture | 1470bec | 2019-03-06 07:33:12 -0800 | [diff] [blame] | 25 | } // namespace ipmiblob |