summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-10-14 13:29:31 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-10-15 11:19:55 +0800
commit2312c424d516862877c45a9566816acfe2da0f06 (patch)
tree7d6e62f8392c613c0ccd34a997c6af671f412c74 /test
parente983d818be18a975c519bd76294519a01ce7a1c3 (diff)
downloadtalos-petitboot-2312c424d516862877c45a9566816acfe2da0f06.tar.gz
talos-petitboot-2312c424d516862877c45a9566816acfe2da0f06.zip
discover: Allow an in-progress boot to be cancelled
Currently, once the boot() function is called, the boot process will ignore any cancellations. This change allows boot() to be cancelled, via boot_cancel(). Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test')
-rw-r--r--test/parser/handler.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/parser/handler.c b/test/parser/handler.c
index 437f765..64978da 100644
--- a/test/parser/handler.c
+++ b/test/parser/handler.c
@@ -47,8 +47,9 @@ void iterate_parsers(struct discover_context *ctx, enum conf_method method)
assert(false);
}
-int boot(void *ctx, struct discover_boot_option *opt, struct boot_command *cmd,
- int dry_run, boot_status_fn status_fn, void *status_arg)
+struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
+ struct boot_command *cmd, int dry_run,
+ boot_status_fn status_fn, void *status_arg)
{
(void)ctx;
(void)opt;
@@ -58,3 +59,8 @@ int boot(void *ctx, struct discover_boot_option *opt, struct boot_command *cmd,
(void)status_arg;
assert(false);
}
+
+void boot_cancel(struct boot_task *task)
+{
+ (void)task;
+}
OpenPOWER on IntegriCloud