tools: add progress implementation
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I9da1674d6cbc688efc7bab0e033788d6ee4694f7
diff --git a/tools/lpc.hpp b/tools/lpc.hpp
index 2c3a723..17367bb 100644
--- a/tools/lpc.hpp
+++ b/tools/lpc.hpp
@@ -3,6 +3,7 @@
#include "interface.hpp"
#include "internal/sys.hpp"
#include "io.hpp"
+#include "progress.hpp"
#include <cstdint>
#include <ipmiblob/blob_interface.hpp>
@@ -23,9 +24,11 @@
public:
LpcDataHandler(ipmiblob::BlobInterface* blob, HostIoInterface* io,
std::uint32_t address, std::uint32_t length,
+ ProgressInterface* progress,
const internal::Sys* sys = &internal::sys_impl) :
blob(blob),
- io(io), address(address), length(length), sys(sys){};
+ io(io), address(address), length(length), progress(progress),
+ sys(sys){};
bool sendContents(const std::string& input, std::uint16_t session) override;
ipmi_flash::FirmwareFlags::UpdateFlags supportedType() const override
@@ -38,6 +41,7 @@
HostIoInterface* io;
std::uint32_t address;
std::uint32_t length;
+ ProgressInterface* progress;
const internal::Sys* sys;
};