xref: /openbmc/phosphor-ipmi-flash/tools/bt.hpp (revision 9b534f06)
1af69625fSPatrick Venture #pragma once
2af69625fSPatrick Venture 
300887597SPatrick Venture #include "blob_interface.hpp"
4af69625fSPatrick Venture #include "interface.hpp"
5af69625fSPatrick Venture 
6*9b534f06SPatrick Venture namespace host_tool
7*9b534f06SPatrick Venture {
8*9b534f06SPatrick Venture 
9af69625fSPatrick Venture class BtDataHandler : public DataInterface
10af69625fSPatrick Venture {
11af69625fSPatrick Venture   public:
1200887597SPatrick Venture     explicit BtDataHandler(BlobInterface* blob) : blob(blob){};
13af69625fSPatrick Venture 
14af69625fSPatrick Venture     bool sendContents(const std::string& input, std::uint16_t session) override;
158a55dcbdSPatrick Venture     blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override
168a55dcbdSPatrick Venture     {
178a55dcbdSPatrick Venture         return flags;
188a55dcbdSPatrick Venture     }
1900887597SPatrick Venture 
2000887597SPatrick Venture   private:
2100887597SPatrick Venture     BlobInterface* blob;
228a55dcbdSPatrick Venture     blobs::FirmwareBlobHandler::UpdateFlags flags =
238a55dcbdSPatrick Venture         blobs::FirmwareBlobHandler::UpdateFlags::ipmi;
24af69625fSPatrick Venture };
25*9b534f06SPatrick Venture 
26*9b534f06SPatrick Venture } // namespace host_tool
27