-int boot(void *ctx, struct boot_option *opt, struct boot_command *cmd,
- int dry_run)
+static void update_status(boot_status_fn fn, void *arg, int type,
+ char *message)
+{
+ struct boot_status status;
+
+ status.type = type;
+ status.message = message;
+ status.progress = -1;
+ status.detail = NULL;
+
+ fn(arg, &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)