diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2019-02-05 17:35:05 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-06-17 08:03:12 +0000 |
commit | b04fef91c100d815265bc1948e61a62f284c42ef (patch) | |
tree | 9446fe01e60f38fde4dd777602a1e8dab2cce8cd /layout.h | |
parent | ee13d0c8fa365455002b109ded7f94f990be8347 (diff) | |
download | flashrom-b04fef91c100d815265bc1948e61a62f284c42ef.tar.gz flashrom-b04fef91c100d815265bc1948e61a62f284c42ef.tar.bz2 flashrom-b04fef91c100d815265bc1948e61a62f284c42ef.zip |
layout.c: Don't use global variables for included regions
This removes the use of global variables for included region arguments
and also uses a linked list to store the arguments.
Change-Id: I6534cc58b8dcc6256c2730c809286d8083669a6c
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/31247
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'layout.h')
-rw-r--r-- | layout.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -54,11 +54,16 @@ struct single_layout { struct romentry entry; }; +struct layout_include_args { + char *name; + struct layout_include_args *next; +}; + struct flashrom_layout *get_global_layout(void); struct flashrom_flashctx; const struct flashrom_layout *get_layout(const struct flashrom_flashctx *const flashctx); -int process_include_args(struct flashrom_layout *); +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); #endif /* !__LAYOUT_H__ */ |