]> git.ozlabs.org Git - petitboot/blobdiff - discover/boot.h
discover: Allow load_async_url() to call callback for local paths
[petitboot] / discover / boot.h
index 0f2734133bc80c9d43cec55c5c1d4461f6cdfe5b..0f3dcf7cdbf246ebd04da62f29c736dc487b5cea 100644 (file)
@@ -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,
@@ -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 {