summaryrefslogtreecommitdiffstats
path: root/applypatch/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-20 19:14:40 +0200
committerTao Bao <tbao@google.com>2018-06-20 22:21:16 +0200
commit8dc704930be62377549ec47b8929d0237ed25f79 (patch)
tree7ef5cec46dac4f4d3b64b12b13051b81438db0cc /applypatch/include
parentapplypatch: Move to libbase logging. (diff)
downloadandroid_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.gz
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.bz2
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.lz
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.xz
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.zst
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.zip
Diffstat (limited to 'applypatch/include')
-rw-r--r--applypatch/include/applypatch/applypatch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/applypatch/include/applypatch/applypatch.h b/applypatch/include/applypatch/applypatch.h
index ef133f290..f074e3681 100644
--- a/applypatch/include/applypatch/applypatch.h
+++ b/applypatch/include/applypatch/applypatch.h
@@ -50,7 +50,7 @@ int CacheSizeCheck(size_t bytes);
// Parses a given string of 40 hex digits into 20-byte array 'digest'. 'str' may contain only the
// digest or be of the form "<digest>:<anything>". Returns 0 on success, or -1 on any error.
-int ParseSha1(const char* str, uint8_t* digest);
+int ParseSha1(const std::string& str, uint8_t* digest);
// Applies binary patches to eMMC target files in a way that is safe (the original file is not
// touched until we have the desired replacement for it) and idempotent (it's okay to run this
@@ -91,10 +91,10 @@ int applypatch_flash(const char* source_filename, const char* target_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 char* filename, FileContents* file);
+int 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 char* filename, const FileContents* file);
+int SaveFileContents(const std::string& filename, const FileContents* file);
// bspatch.cpp