| OLD | NEW |
| 1 /*- | 1 /*- |
| 2 * Copyright 2003,2004 Colin Percival | 2 * Copyright 2003,2004 Colin Percival |
| 3 * All rights reserved | 3 * All rights reserved |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted providing that the following conditions | 6 * modification, are permitted providing that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 unsigned int x; /* add x bytes from oldfile to x bytes from the diff block */ | 95 unsigned int x; /* add x bytes from oldfile to x bytes from the diff block */ |
| 96 unsigned int y; /* copy y bytes from the extra block */ | 96 unsigned int y; /* copy y bytes from the extra block */ |
| 97 int z; /* seek forwards in oldfile by z bytes */ | 97 int z; /* seek forwards in oldfile by z bytes */ |
| 98 } MBSPatchTriple; | 98 } MBSPatchTriple; |
| 99 | 99 |
| 100 /** | 100 /** |
| 101 * Apply the given patch file to a given source file. This method validates | 101 * Apply the given patch file to a given source file. This method validates |
| 102 * the CRC of the original file stored in the patch file, before applying the | 102 * the CRC of the original file stored in the patch file, before applying the |
| 103 * patch to it. | 103 * patch to it. |
| 104 */ | 104 */ |
| 105 int ApplyBinaryPatch(const char *old_file, const char *patch_file, | 105 int ApplyBinaryPatch(const wchar_t *old_file, const wchar_t *patch_file, |
| 106 const char *new_file); | 106 const wchar_t *new_file); |
| 107 | 107 |
| 108 /** | 108 /** |
| 109 * Calculates Crc of the given buffer by calling CRC method in LZMA SDK | 109 * Calculates Crc of the given buffer by calling CRC method in LZMA SDK |
| 110 */ | 110 */ |
| 111 int CalculateCrc(const unsigned char *buf, int size); | 111 int CalculateCrc(const unsigned char *buf, int size); |
| 112 #endif // bspatch_h__ | 112 #endif // bspatch_h__ |
| OLD | NEW |