summaryrefslogtreecommitdiffstats
path: root/layout.h
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2021-05-14 01:07:28 +0200
committerNico Huber <nico.h@gmx.de>2021-06-26 15:59:34 +0000
commitd855351ce708531b8bc060611a30d37294a941ac (patch)
tree821d56b897fc459e7897516a9c0f4c5892e632fc /layout.h
parent7f480531721bca467541f9471ab39937fa9c2ad5 (diff)
downloadflashrom-d855351ce708531b8bc060611a30d37294a941ac.tar.gz
flashrom-d855351ce708531b8bc060611a30d37294a941ac.tar.bz2
flashrom-d855351ce708531b8bc060611a30d37294a941ac.zip
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>
Diffstat (limited to 'layout.h')
-rw-r--r--layout.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/layout.h b/layout.h
index f5fbc5002..e62fdf9b8 100644
--- a/layout.h
+++ b/layout.h
@@ -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);