1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-09-16 09:55:23 +02:00

layout: Kill the global layout

Change-Id: Ic302e9c5faf1368e5ca244ce461e55e14f916ab8
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/54286
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Nico Huber
2021-05-14 01:07:28 +02:00
parent 7f48053172
commit d855351ce7
4 changed files with 11 additions and 27 deletions

View File

@@ -50,10 +50,11 @@ struct flashrom_layout;
struct layout_include_args;
struct flashrom_flashctx;
struct flashrom_layout *get_global_layout(void);
const struct flashrom_layout *get_default_layout(const struct flashrom_flashctx *);
const struct flashrom_layout *get_layout(const struct flashrom_flashctx *const flashctx);
int layout_from_file(struct flashrom_layout **, const char *name);
int get_region_range(struct flashrom_layout *const l, const char *name,
unsigned int *start, unsigned int *len);
int process_include_args(struct flashrom_layout *l, const struct layout_include_args *const args);