Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | namespace phosphor |
| 4 | { |
| 5 | namespace software |
| 6 | { |
| 7 | namespace 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 | */ |
| 17 | int processImage(const std::string& tarballFilePath); |
| 18 | |
Gunnar Mills | 19e4ce5 | 2017-04-27 11:24:19 -0500 | [diff] [blame^] | 19 | /** |
| 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 | */ |
| 26 | int unTar(const std::string& tarballFilePath, |
| 27 | const std::string& extractDirPath); |
| 28 | |
Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 29 | } // namespace manager |
| 30 | } // namespace software |
| 31 | } // namespace phosphor |