summaryrefslogtreecommitdiffstats
path: root/src/ipmiblob/ipmi_interface.hpp
blob: bf7b448cb9aeb41dd00a1d3be7ec6af4ef85d096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <cstdint>
#include <vector>

namespace ipmiblob
{

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(std::vector<std::uint8_t>& data) = 0;
};

} // namespace ipmiblob
OpenPOWER on IntegriCloud