Files
qdl/patch.h
Bjorn Andersson a29f44cc07 qdl: Make failed program or patch operation stop execution
Failures to apply program or patch operations are silently ignored,
forcing the user to inspect the logs to conclude if the flashing
succeded. Instead make the operations halt execution.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-09-21 11:55:16 -07:00

21 lines
381 B
C

#ifndef __PATCH_H__
#define __PATCH_H__
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(int fd, int (*apply)(int fd, struct patch *patch));
#endif