X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fboot.h;h=0f3dcf7cdbf246ebd04da62f29c736dc487b5cea;hp=2d99b7fb58a5e9de1eedb8444c57bbff4020842f;hb=47d0601affe80d7f98a2053749f5e1d479f902f4;hpb=ccb478ac2e5b1e24ebb6af4130fdd37e1b36babb diff --git a/discover/boot.h b/discover/boot.h index 2d99b7f..0f3dcf7 100644 --- a/discover/boot.h +++ b/discover/boot.h @@ -7,7 +7,7 @@ struct boot_option; struct boot_command; -typedef void (*boot_status_fn)(void *arg, struct boot_status *); +typedef void (*boot_status_fn)(void *arg, struct status *); struct boot_task *boot(void *ctx, struct discover_boot_option *opt, struct boot_command *cmd, int dry_run, @@ -26,7 +26,7 @@ struct boot_task { char *local_initrd_override; char *local_dtb_override; const char *args; - const char *boot_tty; + const char *boot_console; boot_status_fn status_fn; void *status_arg; bool dry_run; @@ -41,6 +41,16 @@ struct boot_task { const char *local_initrd_signature; const char *local_dtb_signature; const char *local_cmdline_signature; + struct list resources; +}; + +struct boot_resource { + struct load_url_result *result; + struct pb_url *url; + const char **local_path; + const char *name; + + struct list_item list; }; enum {