blob: d4710ce0ffbe1124b50a7a84c38ea8d0203cb422 [file] [log] [blame]
Patrick Ventureaf696252018-12-11 10:22:14 -08001#pragma once
2
Patrick Venture00887592018-12-11 10:57:06 -08003#include "blob_interface.hpp"
Patrick Ventureaf696252018-12-11 10:22:14 -08004#include "interface.hpp"
5
Patrick Venture9b534f02018-12-13 16:10:02 -08006namespace host_tool
7{
8
Patrick Ventureaf696252018-12-11 10:22:14 -08009class BtDataHandler : public DataInterface
10{
11 public:
Patrick Venture00887592018-12-11 10:57:06 -080012 explicit BtDataHandler(BlobInterface* blob) : blob(blob){};
Patrick Ventureaf696252018-12-11 10:22:14 -080013
14 bool sendContents(const std::string& input, std::uint16_t session) override;
Patrick Venture8a55dcb2018-12-12 21:12:58 -080015 blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override
16 {
17 return flags;
18 }
Patrick Venture00887592018-12-11 10:57:06 -080019
20 private:
21 BlobInterface* blob;
Patrick Venture8a55dcb2018-12-12 21:12:58 -080022 blobs::FirmwareBlobHandler::UpdateFlags flags =
23 blobs::FirmwareBlobHandler::UpdateFlags::ipmi;
Patrick Ventureaf696252018-12-11 10:22:14 -080024};
Patrick Venture9b534f02018-12-13 16:10:02 -080025
26} // namespace host_tool