Index: src/platform/update_engine/utils.h |
diff --git a/src/platform/update_engine/utils.h b/src/platform/update_engine/utils.h |
index e4757832894b728ed01007f8eb09c5bb4b3052c0..7920f3c74916d04a9b8951c06e348c451f68b847 100644 |
--- a/src/platform/update_engine/utils.h |
+++ b/src/platform/update_engine/utils.h |
@@ -15,6 +15,10 @@ namespace chromeos_update_engine { |
namespace utils { |
+// Writes the data passed to path. The file at path will be overwritten if it |
+// exists. Returns true on success, false otherwise. |
+bool WriteFile(const char* path, const char* data, int data_len); |
+ |
// Returns the entire contents of the file at path. Returns true on success. |
bool ReadFile(const std::string& path, std::vector<char>* out); |
bool ReadFileToString(const std::string& path, std::string* out); |