summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.h
diff options
context:
space:
mode:
authorHristo Bojinov <hristo@google.com>2010-08-02 19:29:49 +0200
committerHristo Bojinov <hristo@google.com>2010-08-02 23:17:33 +0200
commitdb314d69f023d2a6c8956073aa9d283e20b280ef (patch)
tree8d076d8b94464e1173b2b5dbf3f2ee419a1d7fa9 /applypatch/applypatch.h
parentdon't go into file select menu when mounting external storage fails (diff)
downloadandroid_bootable_recovery-db314d69f023d2a6c8956073aa9d283e20b280ef.tar
android_bootable_recovery-db314d69f023d2a6c8956073aa9d283e20b280ef.tar.gz
android_bootable_recovery-db314d69f023d2a6c8956073aa9d283e20b280ef.tar.bz2
android_bootable_recovery-db314d69f023d2a6c8956073aa9d283e20b280ef.tar.lz
android_bootable_recovery-db314d69f023d2a6c8956073aa9d283e20b280ef.tar.xz
android_bootable_recovery-db314d69f023d2a6c8956073aa9d283e20b280ef.tar.zst
android_bootable_recovery-db314d69f023d2a6c8956073aa9d283e20b280ef.zip
Diffstat (limited to '')
-rw-r--r--applypatch/applypatch.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/applypatch/applypatch.h b/applypatch/applypatch.h
index 10c01259a..a78c89bfe 100644
--- a/applypatch/applypatch.h
+++ b/applypatch/applypatch.h
@@ -19,6 +19,7 @@
#include <sys/stat.h>
#include "mincrypt/sha.h"
+#include "minelf/Retouch.h"
#include "edify/expr.h"
typedef struct _Patch {
@@ -59,10 +60,12 @@ int applypatch_check(const char* filename,
int num_patches,
char** const patch_sha1_str);
-// Read a file into memory; store it and its associated metadata in
-// *file. Return 0 on success.
-int LoadFileContents(const char* filename, FileContents* file);
+int LoadFileContents(const char* filename, FileContents* file,
+ int retouch_flag);
+int SaveFileContents(const char* filename, FileContents file);
void FreeFileContents(FileContents* file);
+int FindMatchingPatch(uint8_t* sha1, char** const patch_sha1_str,
+ int num_patches);
// bsdiff.c
void ShowBSDiffLicense();