blob: eec0c87655fa087bb166dc74087e743e902fe079 [file] [log] [blame]
Patrick Venturecf2d1b12018-12-11 18:22:36 -08001#pragma once
2
Patrick Ventureb5a97062018-12-13 16:55:23 -08003#include "internal/sys.hpp"
Patrick Venturecf2d1b12018-12-11 18:22:36 -08004#include "ipmi_interface.hpp"
5
Patrick Venture9b534f02018-12-13 16:10:02 -08006namespace host_tool
7{
8
Patrick Venturecf2d1b12018-12-11 18:22:36 -08009class IpmiHandler : public IpmiInterface
10{
11 public:
Patrick Ventureb5a97062018-12-13 16:55:23 -080012 explicit IpmiHandler(const internal::Sys* sys = &internal::sys_impl) :
13 sys(sys){};
Patrick Venturecf2d1b12018-12-11 18:22:36 -080014
Patrick Venture035bbbb2018-12-12 14:59:52 -080015 std::vector<std::uint8_t>
16 sendPacket(const std::vector<std::uint8_t>& data) override;
Patrick Ventureb5a97062018-12-13 16:55:23 -080017
18 private:
19 const internal::Sys* sys;
Patrick Venturecf2d1b12018-12-11 18:22:36 -080020};
Patrick Venture9b534f02018-12-13 16:10:02 -080021
22} // namespace host_tool