Searched defs:patch (Results 1 - 3 of 3) sorted by relevance

/bootable/recovery/applypatch/
H A Dbspatch.c101 const Value* patch, ssize_t patch_offset,
106 if (ApplyBSDiffPatchMem(old_data, old_size, patch, patch_offset,
124 const Value* patch, ssize_t patch_offset,
138 unsigned char* header = (unsigned char*) patch->data + patch_offset;
140 printf("corrupt bsdiff patch file header (magic number)\n");
150 printf("corrupt patch file header (data lengths)\n");
157 cstream.next_in = patch->data + patch_offset + 32;
167 dstream.next_in = patch->data + patch_offset + 32 + ctrl_len;
177 estream.next_in = patch->data + patch_offset + 32 + ctrl_len + data_len;
178 estream.avail_in = patch
100 ApplyBSDiffPatch(const unsigned char* old_data, ssize_t old_size, const Value* patch, ssize_t patch_offset, SinkFn sink, void* token, SHA_CTX* ctx) argument
123 ApplyBSDiffPatchMem(const unsigned char* old_data, ssize_t old_size, const Value* patch, ssize_t patch_offset, unsigned char** new_data, ssize_t* new_size) argument
[all...]
H A Dimgpatch.c17 // See imgdiff.c in this directory for a description of the patch file
33 * Apply the patch given in 'patch_filename' to the source data given
39 const Value* patch,
42 char* header = patch->data;
43 if (patch->size < 12) {
44 printf("patch too short to contain header\n");
52 printf("corrupt patch file header (magic number)\n");
61 if (pos + 4 > patch->size) {
65 int type = Read4(patch->data + pos);
69 char* normal_header = patch
38 ApplyImagePatch(const unsigned char* old_data, ssize_t old_size, const Value* patch, SinkFn sink, void* token, SHA_CTX* ctx) argument
[all...]
H A Dapplypatch.c597 // entries in <patch_sha1_str>, the corresponding patch from
599 // new file (the type of patch is automatically detected from the
621 printf("\napplying patch to %s\n", source_filename);
645 // The early-exit case: the patch was already applied, this file
647 printf("\"%s\" is already target; no patch needed\n",
809 const Value* patch; local
812 patch = source_patch_value;
815 patch = copy_patch_value;
818 if (patch->type != VAL_BLOB) {
819 printf("patch i
[all...]

Completed in 231 milliseconds