summaryrefslogtreecommitdiffstats
path: root/layout.h
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2019-06-16 19:28:35 +0200
committerNico Huber <nico.h@gmx.de>2021-06-26 15:53:04 +0000
commit06a89d713951a2e08ef8fb698a7688357baa83d1 (patch)
tree0c56a5cf117776080b467c7445047920dfbfbcd3 /layout.h
parent4abb62c4ac1f25e40f2569535322342b9c939558 (diff)
downloadflashrom-06a89d713951a2e08ef8fb698a7688357baa83d1.tar.gz
flashrom-06a89d713951a2e08ef8fb698a7688357baa83d1.tar.bz2
flashrom-06a89d713951a2e08ef8fb698a7688357baa83d1.zip
layout: Introduce layout_next()
Also, a `layout.c` internal version mutable_layout_next() that allows to modify layout entries and a shorthand to look up an entry by name, _layout_entry_by_name(). Use the new functions where applicable and the code is not dropped later in this train, and also to compare the layouts in flashrom_layout_read_from_ifd() in depth. Change-Id: I284958471c61344d29d92c95d88475065a9ca9aa Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33542 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'layout.h')
-rw-r--r--layout.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/layout.h b/layout.h
index f5740978b..d60c89ee3 100644
--- a/layout.h
+++ b/layout.h
@@ -70,6 +70,7 @@ int get_region_range(struct flashrom_layout *const l, const char *name,
int process_include_args(struct flashrom_layout *l, const struct layout_include_args *const args);
const struct romentry *layout_next_included_region(const struct flashrom_layout *, chipoff_t);
const struct romentry *layout_next_included(const struct flashrom_layout *, const struct romentry *);
+const struct romentry *layout_next(const struct flashrom_layout *, const struct romentry *);
int included_regions_overlap(const struct flashrom_layout *const flashrom_layout);
void prepare_layout_for_extraction(struct flashrom_flashctx *flash);