Michael Tritz | 60bc20f | 2017-07-29 23:32:21 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Michael Tritz | 60bc20f | 2017-07-29 23:32:21 -0500 | [diff] [blame] | 3 | namespace openpower |
| 4 | { |
| 5 | namespace software |
| 6 | { |
| 7 | namespace updater |
| 8 | { |
| 9 | |
Michael Tritz | 60bc20f | 2017-07-29 23:32:21 -0500 | [diff] [blame] | 10 | /** @brief Serialization function - stores activation information to file |
| 11 | * @param[in] versionId - The version for which to store information. |
| 12 | * @param[in] priority - RedundancyPriority value for that version. |
| 13 | */ |
| 14 | void storeToFile(std::string versionId, uint8_t priority); |
| 15 | |
| 16 | /** @brief Serialization function - restores activation information from file |
| 17 | * @param[in] versionId - The version for which to retrieve information. |
| 18 | * @param[in] priority - RedundancyPriority pointer for that version. |
Michael Tritz | 3641792 | 2017-08-04 14:00:29 -0500 | [diff] [blame] | 19 | * @return true if restore was successful, false if not |
Michael Tritz | 60bc20f | 2017-07-29 23:32:21 -0500 | [diff] [blame] | 20 | */ |
Michael Tritz | 3641792 | 2017-08-04 14:00:29 -0500 | [diff] [blame] | 21 | bool restoreFromFile(std::string versionId, uint8_t& priority); |
Michael Tritz | 60bc20f | 2017-07-29 23:32:21 -0500 | [diff] [blame] | 22 | |
| 23 | /** @brief Removes the serial file for a given version. |
| 24 | * @param[in] versionId - The version for which to remove a file, if it exists. |
| 25 | */ |
| 26 | void removeFile(std::string versionId); |
| 27 | |
| 28 | } // namespace updater |
| 29 | } // namespace software |
| 30 | } // namespace openpower |