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