aboutsummaryrefslogtreecommitdiff
path: root/patch.h
blob: f2c94ec3a544b98084a40e386e3983eff39a903e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __PATCH_H__
#define __PATCH_H__

struct qdl_device;

struct patch {
	unsigned sector_size;
	unsigned byte_offset;
	const char *filename;
	unsigned partition;
	unsigned size_in_bytes;
	unsigned start_sector;
	const char *value;
	const char *what;

	struct patch *next;
};

int patch_load(const char *patch_file);
int patch_execute(struct qdl_device *qdl, int (*apply)(struct qdl_device *qdl, struct patch *patch));

#endif