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 | 8a55dcb | 2018-12-12 21:12:58 -0800 | [diff] [blame] | 20 | blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override |
| 21 | { |
Patrick Venture | 55c5374 | 2019-01-17 15:54:09 -0800 | [diff] [blame] | 22 | return blobs::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 |