summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2019-11-14 13:52:57 +0800
committerJeremy Kerr <jk@ozlabs.org>2019-11-29 13:54:10 +0800
commit9711179694bb0e52c5951dc7222f1f79fcba814d (patch)
treee72c391c728dbcf9b01623678a25f667cca521ab
parent2c132ebc93a44b7550b1fdb3f5f7b010e51f47e8 (diff)
downloadtalos-petitboot-9711179694bb0e52c5951dc7222f1f79fcba814d.tar.gz
talos-petitboot-9711179694bb0e52c5951dc7222f1f79fcba814d.zip
discover/grub2: make statements_execute non-static
We want to execute newly-parsed statements, so expose statements_execute() to the rest of the grub2 parser code. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--discover/grub2/grub2.h3
-rw-r--r--discover/grub2/script.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/discover/grub2/grub2.h b/discover/grub2/grub2.h
index 668d070..deaf976 100644
--- a/discover/grub2/grub2.h
+++ b/discover/grub2/grub2.h
@@ -165,6 +165,9 @@ void word_append(struct grub2_word *w1, struct grub2_word *w2);
/* script interface */
void script_execute(struct grub2_script *script);
+int statements_execute(struct grub2_script *script,
+ struct grub2_statements *stmts);
+
int statement_simple_execute(struct grub2_script *script,
struct grub2_statement *statement);
int statement_block_execute(struct grub2_script *script,
diff --git a/discover/grub2/script.c b/discover/grub2/script.c
index 34e0400..14931f9 100644
--- a/discover/grub2/script.c
+++ b/discover/grub2/script.c
@@ -229,7 +229,7 @@ static void process_expansions(struct grub2_script *script,
argv->argc--;
}
-static int statements_execute(struct grub2_script *script,
+int statements_execute(struct grub2_script *script,
struct grub2_statements *stmts)
{
struct grub2_statement *stmt;
OpenPOWER on IntegriCloud