blob: 932d2e89232a971fa21b5f3481d7748051c76f93 [file] [log] [blame]
Patrick Venturecf2d1b12018-12-11 18:22:36 -08001#pragma once
2
3#include <cstdint>
4#include <vector>
5
6class 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};