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