]> git.ozlabs.org Git - petitboot/blobdiff - discover/boot.h
ui/ncurses: Use pmenu_item destrutor to free ncurses ITEMs
[petitboot] / discover / boot.h
index bbb02cf7858e39e0f077fc42e56538c2b9a1f65b..ec61703144c5409aa77b71de2ce54d254839de0e 100644 (file)
@@ -6,7 +6,9 @@ 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, 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 boot_cancel(struct boot_task *task);
 #endif /* _BOOT_H */