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