comparison tool/patchinfo.h @ 0:12e230d431f0

started writing libpatch tool
author Space Falcon <falcon@ivan.Harhan.ORG>
date Wed, 03 Jun 2015 07:40:00 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:12e230d431f0
1 /*
2 * Our libpatch tool's first step will be to read and parse an ASCII text file
3 * specifying the patches to be applied. This information will be captured
4 * in data structures defined in this header file.
5 */
6
7 struct patch_module_desc {
8 char *member_name;
9 struct patch_desc *patches;
10 struct patch_module_desc *next;
11 };
12
13 struct patch_desc {
14 char *section;
15 unsigned offset;
16 u_char new_byte;
17 struct patch_desc *next;
18 };