summaryrefslogtreecommitdiffstats
path: root/discover/grub2/grub2.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-17 14:35:38 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 13:14:59 +0800
commitd39ae394911f945cd4a7789a8b210a5662852c46 (patch)
tree1e7877e6bf6ab54031951042b0469859f8f4853f /discover/grub2/grub2.h
parent9638c29114c8d575d1b89c26dcf1f274ea6ab6c4 (diff)
downloadtalos-petitboot-d39ae394911f945cd4a7789a8b210a5662852c46.tar.gz
talos-petitboot-d39ae394911f945cd4a7789a8b210a5662852c46.zip
discover/grub2: Implement 'elif'
Rather than just having one conditional in an if statement, we use a list of conditionals instead. This allows us to implement elif. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/grub2/grub2.h')
-rw-r--r--discover/grub2/grub2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/discover/grub2/grub2.h b/discover/grub2/grub2.h
index 7f4a834..c7f43de 100644
--- a/discover/grub2/grub2.h
+++ b/discover/grub2/grub2.h
@@ -68,7 +68,7 @@ struct grub2_statement_conditional {
struct grub2_statement_if {
struct grub2_statement st;
- struct grub2_statement *conditional;
+ struct grub2_statements *conditionals;
struct grub2_statements *else_case;
};
@@ -114,6 +114,7 @@ struct grub2_statement *create_statement_conditional(
struct grub2_statement *create_statement_if(struct grub2_parser *parser,
struct grub2_statement *conditional,
+ struct grub2_statements *elifs,
struct grub2_statements *else_case);
struct grub2_statement *create_statement_block(struct grub2_parser *parser,
OpenPOWER on IntegriCloud