tools: add progress implementation
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I9da1674d6cbc688efc7bab0e033788d6ee4694f7
diff --git a/tools/p2a.hpp b/tools/p2a.hpp
index c84f12d..d1a303e 100644
--- a/tools/p2a.hpp
+++ b/tools/p2a.hpp
@@ -4,6 +4,7 @@
#include "internal/sys.hpp"
#include "io.hpp"
#include "pci.hpp"
+#include "progress.hpp"
#include <cstdint>
#include <ipmiblob/blob_interface.hpp>
@@ -22,10 +23,10 @@
{
public:
P2aDataHandler(ipmiblob::BlobInterface* blob, HostIoInterface* io,
- PciUtilInterface* pci,
+ PciUtilInterface* pci, ProgressInterface* progress,
const internal::Sys* sys = &internal::sys_impl) :
blob(blob),
- io(io), pci(pci), sys(sys)
+ io(io), pci(pci), progress(progress), sys(sys)
{
}
@@ -39,6 +40,7 @@
ipmiblob::BlobInterface* blob;
HostIoInterface* io;
PciUtilInterface* pci;
+ ProgressInterface* progress;
const internal::Sys* sys;
};