tools: lpc: add internal/sys to handler
The lpc data handler will need a syscall handle. Add the syscall
interface.
Change-Id: I8a9f687e9457709e2d0f0fca3e712719fa106e80
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/lpc.hpp b/tools/lpc.hpp
index 48ffe7f..3363c01 100644
--- a/tools/lpc.hpp
+++ b/tools/lpc.hpp
@@ -2,6 +2,7 @@
#include "blob_interface.hpp"
#include "interface.hpp"
+#include "internal/sys.hpp"
#include <cstdint>
@@ -19,7 +20,10 @@
class LpcDataHandler : public DataInterface
{
public:
- explicit LpcDataHandler(BlobInterface* blob) : blob(blob){};
+ LpcDataHandler(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
@@ -29,6 +33,7 @@
private:
BlobInterface* blob;
+ const internal::Sys* sys;
};
} // namespace host_tool