blob: 0b0187fef7842d4d061dc9fb8f77ca4fbe6826dc [file] [log] [blame]
#pragma once
#include "blob_interface.hpp"
#include "interface.hpp"
#include "internal/sys.hpp"
namespace host_tool
{
class BtDataHandler : public DataInterface
{
public:
BtDataHandler(BlobInterface* blob,
const internal::Sys* sys = &internal::sys_impl) :
blob(blob),
sys(sys){};
bool sendContents(const std::string& input, std::uint16_t session) override;
blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override
{
return blobs::FirmwareBlobHandler::UpdateFlags::ipmi;
}
private:
BlobInterface* blob;
const internal::Sys* sys;
};
} // namespace host_tool