summaryrefslogtreecommitdiffstats
path: root/applypatch/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-08-31 20:25:05 +0200
committerTao Bao <tbao@google.com>2018-08-31 23:31:19 +0200
commit09e84938615cacb14f39882d3c4b717b54749ed7 (patch)
treef859a69c790588fc50252c7776d2a9cea046ac4f /applypatch/include
parentMerge "applypatch: Refactor applypatch()." (diff)
downloadandroid_bootable_recovery-09e84938615cacb14f39882d3c4b717b54749ed7.tar
android_bootable_recovery-09e84938615cacb14f39882d3c4b717b54749ed7.tar.gz
android_bootable_recovery-09e84938615cacb14f39882d3c4b717b54749ed7.tar.bz2
android_bootable_recovery-09e84938615cacb14f39882d3c4b717b54749ed7.tar.lz
android_bootable_recovery-09e84938615cacb14f39882d3c4b717b54749ed7.tar.xz
android_bootable_recovery-09e84938615cacb14f39882d3c4b717b54749ed7.tar.zst
android_bootable_recovery-09e84938615cacb14f39882d3c4b717b54749ed7.zip
Diffstat (limited to 'applypatch/include')
-rw-r--r--applypatch/include/applypatch/applypatch.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/applypatch/include/applypatch/applypatch.h b/applypatch/include/applypatch/applypatch.h
index 70eee1c16..6fc6f0fc9 100644
--- a/applypatch/include/applypatch/applypatch.h
+++ b/applypatch/include/applypatch/applypatch.h
@@ -92,12 +92,11 @@ bool CheckPartition(const Partition& target);
// function is idempotent. Returns the flashing result.
bool FlashPartition(const Partition& target, const std::string& source_filename);
-// Reads a file into memory; stores the file contents and associated metadata in *file. Returns 0
-// on success, or -1 on error.
-int LoadFileContents(const std::string& filename, FileContents* file);
+// Reads a file into memory; stores the file contents and associated metadata in *file.
+bool LoadFileContents(const std::string& filename, FileContents* file);
-// Saves the given FileContents object to the given filename. Returns 0 on success, or -1 on error.
-int SaveFileContents(const std::string& filename, const FileContents* file);
+// Saves the given FileContents object to the given filename.
+bool SaveFileContents(const std::string& filename, const FileContents* file);
// bspatch.cpp