]> git.ozlabs.org Git - petitboot/blobdiff - discover/boot.h
lib: Move ipmi_bootdev enum to types.h
[petitboot] / discover / boot.h
index be2ca5752e9e1eeca5c8471fba6651ec09949f5d..ec61703144c5409aa77b71de2ce54d254839de0e 100644 (file)
@@ -4,7 +4,11 @@
 struct boot_option;
 struct boot_command;
 
-int boot(void *ctx, struct boot_option *opt, struct boot_command *cmd,
-               int dry_run);
+typedef void (*boot_status_fn)(void *arg, struct boot_status *);
 
+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 boot_cancel(struct boot_task *task);
 #endif /* _BOOT_H */