File: patch.h

package info (click to toggle)
qdl 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 320 kB
  • sloc: ansic: 3,910; makefile: 75; xml: 75; sh: 70
file content (24 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: BSD-3-Clause */
#ifndef __PATCH_H__
#define __PATCH_H__

struct qdl_device;

struct patch {
	unsigned int sector_size;
	unsigned int byte_offset;
	const char *filename;
	unsigned int partition;
	unsigned int size_in_bytes;
	const char *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));
void free_patches(void);

#endif