firmare: start implementing session stat
Session-specific stat is a call required by the P2A bridge to allow the
host to configure its side of the equation.
Change-Id: I90570641cf9a6816fb91e8329582b882aef212cf
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/image_handler.hpp b/image_handler.hpp
index ed3455b..0be4590 100644
--- a/image_handler.hpp
+++ b/image_handler.hpp
@@ -39,6 +39,13 @@
*/
virtual bool write(std::uint32_t offset,
const std::vector<std::uint8_t>& data) = 0;
+
+ /**
+ * return the size of the file (if that notion makes sense).
+ *
+ * @return the size in bytes of the image staged.
+ */
+ virtual int getSize() = 0;
};
struct HandlerPack