summaryrefslogtreecommitdiffstats
path: root/serialize.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'serialize.hpp')
-rw-r--r--serialize.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/serialize.hpp b/serialize.hpp
index 03eea99..604aada 100644
--- a/serialize.hpp
+++ b/serialize.hpp
@@ -30,6 +30,13 @@ bool restoreFromFile(std::string versionId, uint8_t& priority);
**/
void removeFile(std::string versionId);
+/** @brief Delays until the completion of the supplied service file or until
+ * specified timeout is reached.
+ * @param[in] serviceFile - Service file to wait for.
+ * @param[in] timeout - Fallback timeout so we don't get stuck.
+ **/
+void waitForServiceFile(const std::string& serviceFile, int timeout);
+
} // namespace phosphor
} // namespace software
} // namespace openpower
OpenPOWER on IntegriCloud