blob: 49baffe4e7532e9faafd74293a9896af609a47ed [file] [log] [blame]
Gunnar Millse91d3212017-04-19 15:42:47 -05001#pragma once
2
3namespace phosphor
4{
5namespace software
6{
7namespace manager
8{
9
10/**
11 * @brief Verify and untar the tarball. Verify the manifest file.
12 * Create and populate the version and filepath interfaces.
13 *
14 * @param[in] tarballFilePath - Tarball path.
15 * @param[out] result - 0 if successful.
16 */
17int processImage(const std::string& tarballFilePath);
18
Gunnar Mills19e4ce52017-04-27 11:24:19 -050019/**
20 * @brief Untar the tarball.
21 *
22 * @param[in] tarballFilePath - Tarball path.
23 * @param[in] extractDirPath - Dir path to extract tarball ball to.
24 * @param[out] result - 0 if successful.
25 */
26int unTar(const std::string& tarballFilePath,
27 const std::string& extractDirPath);
28
Gunnar Millse91d3212017-04-19 15:42:47 -050029} // namespace manager
30} // namespace software
31} // namespace phosphor