]> git.ozlabs.org Git - petitboot/blobdiff - ui/common/discover-client.h
ui/ncurses: Allow booting custom boot options
[petitboot] / ui / common / discover-client.h
index 2245a65141330883383af48f9e448fa4e4a0e256..feca63b9eac324c2fd77a6005eda2979c25cf3fc 100644 (file)
@@ -9,6 +9,7 @@ struct discover_client;
 struct pb_boot_data {
        char *image;
        char *initrd;
+       char *dtb;
        char *args;
 };
 
@@ -25,6 +26,7 @@ struct discover_client_ops {
                        void *arg);
        void (*device_remove)(struct device *device, void *arg);
        void (*update_status)(struct boot_status *status, void *arg);
+       void (*update_sysinfo)(struct system_info *sysinfo, void *arg);
        void *cb_arg;
 };
 
@@ -59,4 +61,8 @@ int discover_client_boot(struct discover_client *client,
                const struct device *device,
                const struct boot_option *boot_option,
                const struct pb_boot_data *data);
+
+/* Tell the discover server to cancel the default boot option, if any
+ */
+int discover_client_cancel_default(struct discover_client *client);
 #endif