X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fboot.h;h=ec61703144c5409aa77b71de2ce54d254839de0e;hp=1dc5767b083d50a03fa899fe1a8cf56ddb24e473;hb=c4f34e487fbf061ee6385d1f75e4ef0084c9a1ba;hpb=5be946cda7b8e2271ade6188ca3f5dc068826619 diff --git a/discover/boot.h b/discover/boot.h index 1dc5767..ec61703 100644 --- a/discover/boot.h +++ b/discover/boot.h @@ -4,7 +4,11 @@ struct boot_option; struct boot_command; -int boot(void *ctx, struct discover_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 */