X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fgrub2%2Fgrub2.h;h=5ee8503dbf88af6c0db0934c075faac3cf3c24db;hp=7f4a8345e666ff7ac78012320610ed07fdfe9c76;hb=b16b116422f1fb817924f4d2c3d9b1354da35614;hpb=9638c29114c8d575d1b89c26dcf1f274ea6ab6c4 diff --git a/discover/grub2/grub2.h b/discover/grub2/grub2.h index 7f4a834..5ee8503 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; }; @@ -89,6 +89,7 @@ struct grub2_script { struct list symtab; struct discover_context *ctx; struct discover_boot_option *opt; + unsigned int n_options; }; struct grub2_parser { @@ -114,6 +115,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, @@ -142,6 +144,8 @@ void script_execute(struct grub2_script *script); int statement_simple_execute(struct grub2_script *script, struct grub2_statement *statement); +int statement_block_execute(struct grub2_script *script, + struct grub2_statement *statement); int statement_if_execute(struct grub2_script *script, struct grub2_statement *statement); int statement_menuentry_execute(struct grub2_script *script,