mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
Assumed to be a remnant of early development lead to a recent transition
of "start_sector" from being represented as a string to an integer. But
it turns out that "start_sector" might be an expression, e.g. to write
something at the end of the disk.
So transition back to carry "start_sector" as a string.
Fixes: b6e0ea31d7 ("program: Make start_sector unsigned in")
Reported-by: Julien Robin
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
23 lines
433 B
C
23 lines
433 B
C
#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;
|
|
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));
|
|
|
|
#endif
|