Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "interface.hpp" |
Patrick Venture | c181eba | 2019-01-15 13:10:22 -0800 | [diff] [blame] | 4 | #include "internal/sys.hpp" |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 5 | |
Patrick Venture | 664c5bc | 2019-03-07 08:09:45 -0800 | [diff] [blame] | 6 | #include <ipmiblob/blob_interface.hpp> |
| 7 | |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame] | 8 | namespace host_tool |
| 9 | { |
| 10 | |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 11 | class BtDataHandler : public DataInterface |
| 12 | { |
| 13 | public: |
Patrick Venture | 664c5bc | 2019-03-07 08:09:45 -0800 | [diff] [blame] | 14 | BtDataHandler(ipmiblob::BlobInterface* blob, |
Patrick Venture | c181eba | 2019-01-15 13:10:22 -0800 | [diff] [blame] | 15 | const internal::Sys* sys = &internal::sys_impl) : |
| 16 | blob(blob), |
| 17 | sys(sys){}; |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 18 | |
| 19 | bool sendContents(const std::string& input, std::uint16_t session) override; |
Patrick Venture | 1d5a31c | 2019-05-20 11:38:22 -0700 | [diff] [blame] | 20 | ipmi_flash::FirmwareBlobHandler::UpdateFlags supportedType() const override |
Patrick Venture | 8a55dcb | 2018-12-12 21:12:58 -0800 | [diff] [blame] | 21 | { |
Patrick Venture | 1d5a31c | 2019-05-20 11:38:22 -0700 | [diff] [blame] | 22 | return ipmi_flash::FirmwareBlobHandler::UpdateFlags::ipmi; |
Patrick Venture | 8a55dcb | 2018-12-12 21:12:58 -0800 | [diff] [blame] | 23 | } |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 24 | |
| 25 | private: |
Patrick Venture | 664c5bc | 2019-03-07 08:09:45 -0800 | [diff] [blame] | 26 | ipmiblob::BlobInterface* blob; |
Patrick Venture | c181eba | 2019-01-15 13:10:22 -0800 | [diff] [blame] | 27 | const internal::Sys* sys; |
Patrick Venture | af69625 | 2018-12-11 10:22:14 -0800 | [diff] [blame] | 28 | }; |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame] | 29 | |
| 30 | } // namespace host_tool |