Files
qdl/patch.h
T

26 lines
540 B
C
Raw Permalink Normal View History

2025-06-24 06:49:51 +02:00
/* SPDX-License-Identifier: BSD-3-Clause */
2016-07-08 11:26:26 -07:00
#ifndef __PATCH_H__
#define __PATCH_H__
2025-08-28 11:26:11 -05:00
#include "list.h"
struct qdl_device;
2016-07-08 11:26:26 -07:00
struct patch {
2025-06-18 09:39:54 +02:00
unsigned int sector_size;
unsigned int byte_offset;
2016-07-08 11:26:26 -07:00
const char *filename;
2025-06-18 09:39:54 +02:00
unsigned int partition;
unsigned int size_in_bytes;
const char *start_sector;
2016-07-08 11:26:26 -07:00
const char *value;
const char *what;
2025-08-28 11:26:11 -05:00
struct list_head node;
2016-07-08 11:26:26 -07:00
};
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);
2016-07-08 11:26:26 -07:00
#endif