Patrick Venture | cf2d1b1 | 2018-12-11 18:22:36 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | b5a9706 | 2018-12-13 16:55:23 -0800 | [diff] [blame^] | 3 | #include "internal/sys.hpp" |
Patrick Venture | cf2d1b1 | 2018-12-11 18:22:36 -0800 | [diff] [blame] | 4 | #include "ipmi_interface.hpp" |
| 5 | |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame] | 6 | namespace host_tool |
| 7 | { |
| 8 | |
Patrick Venture | cf2d1b1 | 2018-12-11 18:22:36 -0800 | [diff] [blame] | 9 | class IpmiHandler : public IpmiInterface |
| 10 | { |
| 11 | public: |
Patrick Venture | b5a9706 | 2018-12-13 16:55:23 -0800 | [diff] [blame^] | 12 | explicit IpmiHandler(const internal::Sys* sys = &internal::sys_impl) : |
| 13 | sys(sys){}; |
Patrick Venture | cf2d1b1 | 2018-12-11 18:22:36 -0800 | [diff] [blame] | 14 | |
Patrick Venture | 035bbbb | 2018-12-12 14:59:52 -0800 | [diff] [blame] | 15 | std::vector<std::uint8_t> |
| 16 | sendPacket(const std::vector<std::uint8_t>& data) override; |
Patrick Venture | b5a9706 | 2018-12-13 16:55:23 -0800 | [diff] [blame^] | 17 | |
| 18 | private: |
| 19 | const internal::Sys* sys; |
Patrick Venture | cf2d1b1 | 2018-12-11 18:22:36 -0800 | [diff] [blame] | 20 | }; |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame] | 21 | |
| 22 | } // namespace host_tool |