tools/handler: Read the running version

A host tool would read the running firmware version through polling the
version blob state.

Signed-off-by: Jie Yang <jjy@google.com>
Change-Id: I0d68fff6527cd52360abee1cb225a8f228d68392
diff --git a/tools/helper.hpp b/tools/helper.hpp
index 9acf58d..9b987ac 100644
--- a/tools/helper.hpp
+++ b/tools/helper.hpp
@@ -12,11 +12,21 @@
  *
  * @param[in] session - the open verification session
  * @param[in] blob - pointer to blob interface implementation object.
- * @return true if the verification was successul.
+ * @return true if the verification was successful.
  */
 bool pollStatus(std::uint16_t session, ipmiblob::BlobInterface* blob);
 
 /**
+ * Poll an open firmware version blob session and check if it ready to read.
+ *
+ * @param[in] session - the open firmware version blob session
+ * @param[in] blob - pointer to blob interface implementation object
+ * @return the polling status and blob buffer size
+ */
+std::pair<bool, uint32_t> pollReadReady(std::uint16_t session,
+                                        ipmiblob::BlobInterface* blob);
+
+/**
  * Aligned memcpy
  * @param[out] destination - destination memory pointer
  * @param[in] source - source memory pointer