summaryrefslogtreecommitdiffstats
path: root/discover/boot.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-01 09:56:54 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-06 09:02:12 +0800
commit375c81a1b9aa8904dfdd0b1195fe99a1e4a2fa9d (patch)
treeb191cbbb4a36af487aaedc24572af6fadf481b24 /discover/boot.h
parenteefe357750df147359aa7ff532343a9b59341ef1 (diff)
downloadtalos-petitboot-375c81a1b9aa8904dfdd0b1195fe99a1e4a2fa9d.tar.gz
talos-petitboot-375c81a1b9aa8904dfdd0b1195fe99a1e4a2fa9d.zip
discover: Send boot status messages during boot()
Now what we have protocol support, send status updates during the boot process. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/boot.h')
-rw-r--r--discover/boot.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/discover/boot.h b/discover/boot.h
index 1dc5767..bbb02cf 100644
--- a/discover/boot.h
+++ b/discover/boot.h
@@ -4,7 +4,9 @@
struct boot_option;
struct boot_command;
+typedef void (*boot_status_fn)(void *arg, struct boot_status *);
+
int boot(void *ctx, struct discover_boot_option *opt, struct boot_command *cmd,
- int dry_run);
+ int dry_run, boot_status_fn status_fn, void *status_arg);
#endif /* _BOOT_H */
OpenPOWER on IntegriCloud