tools: add progress implementation
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I9da1674d6cbc688efc7bab0e033788d6ee4694f7
diff --git a/tools/bt.hpp b/tools/bt.hpp
index 729f74d..16605fd 100644
--- a/tools/bt.hpp
+++ b/tools/bt.hpp
@@ -2,6 +2,7 @@
#include "interface.hpp"
#include "internal/sys.hpp"
+#include "progress.hpp"
#include <ipmiblob/blob_interface.hpp>
@@ -11,10 +12,10 @@
class BtDataHandler : public DataInterface
{
public:
- BtDataHandler(ipmiblob::BlobInterface* blob,
+ BtDataHandler(ipmiblob::BlobInterface* blob, ProgressInterface* progress,
const internal::Sys* sys = &internal::sys_impl) :
blob(blob),
- sys(sys){};
+ progress(progress), sys(sys){};
bool sendContents(const std::string& input, std::uint16_t session) override;
ipmi_flash::FirmwareFlags::UpdateFlags supportedType() const override
@@ -24,6 +25,7 @@
private:
ipmiblob::BlobInterface* blob;
+ ProgressInterface* progress;
const internal::Sys* sys;
};