summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-02-11 01:41:10 +0100
committerYabin Cui <yabinc@google.com>2016-03-11 20:11:11 +0100
commit1c522df25f9524eaa0273538b3de0b9ad1b8fcea (patch)
treef2eb88134aca78ed69565d586b54d59c2e1c4f04 /applypatch/applypatch.h
parentrecovery: Remove duplicate variables and functions (diff)
downloadandroid_bootable_recovery-1c522df25f9524eaa0273538b3de0b9ad1b8fcea.tar
android_bootable_recovery-1c522df25f9524eaa0273538b3de0b9ad1b8fcea.tar.gz
android_bootable_recovery-1c522df25f9524eaa0273538b3de0b9ad1b8fcea.tar.bz2
android_bootable_recovery-1c522df25f9524eaa0273538b3de0b9ad1b8fcea.tar.lz
android_bootable_recovery-1c522df25f9524eaa0273538b3de0b9ad1b8fcea.tar.xz
android_bootable_recovery-1c522df25f9524eaa0273538b3de0b9ad1b8fcea.tar.zst
android_bootable_recovery-1c522df25f9524eaa0273538b3de0b9ad1b8fcea.zip
Diffstat (limited to 'applypatch/applypatch.h')
-rw-r--r--applypatch/applypatch.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/applypatch/applypatch.h b/applypatch/applypatch.h
index 14fb490ba..f392c5534 100644
--- a/applypatch/applypatch.h
+++ b/applypatch/applypatch.h
@@ -24,17 +24,11 @@
#include "openssl/sha.h"
#include "edify/expr.h"
-typedef struct _Patch {
+struct FileContents {
uint8_t sha1[SHA_DIGEST_LENGTH];
- const char* patch_filename;
-} Patch;
-
-typedef struct _FileContents {
- uint8_t sha1[SHA_DIGEST_LENGTH];
- unsigned char* data;
- ssize_t size;
+ std::vector<unsigned char> data;
struct stat st;
-} FileContents;
+};
// When there isn't enough room on the target filesystem to hold the
// patched version of the file, we copy the original here and delete