diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool/patchinfo.h	Wed Jun 03 07:40:00 2015 +0000
@@ -0,0 +1,18 @@
+/*
+ * Our libpatch tool's first step will be to read and parse an ASCII text file
+ * specifying the patches to be applied.  This information will be captured
+ * in data structures defined in this header file.
+ */
+
+struct patch_module_desc {
+	char *member_name;
+	struct patch_desc *patches;
+	struct patch_module_desc *next;
+};
+
+struct patch_desc {
+	char *section;
+	unsigned offset;
+	u_char new_byte;
+	struct patch_desc *next;
+};