Untar tarball

Untar the tarball to the image dir. The image dir is
<IMG_UPLOAD_DIR>/<id>/. The MANIFEST is first extracted,
the version is read from the MANIFEST and used to compute the id.

Change-Id: Ifed01e980202404e104ce7c20beb85ab23527913
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/image_manager.hpp b/image_manager.hpp
index e57599f..49baffe 100644
--- a/image_manager.hpp
+++ b/image_manager.hpp
@@ -16,6 +16,16 @@
  */
 int processImage(const std::string& tarballFilePath);
 
+/**
+ * @brief Untar the tarball.
+ *
+ * @param[in]  tarballFilePath - Tarball path.
+ * @param[in]  extractDirPath  - Dir path to extract tarball ball to.
+ * @param[out] result          - 0 if successful.
+ */
+int unTar(const std::string& tarballFilePath,
+          const std::string& extractDirPath);
+
 } // namespace manager
 } // namespace software
 } // namespace phosphor