]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-cui.h
ui: callback & boot actions: kexec -> boot
[petitboot] / ui / ncurses / nc-cui.h
index 4470ef44badee98fb9050d90db4d82b4ff316962..abe22a8ad3fc61569398ea51069836f69bb43b0e 100644 (file)
@@ -28,7 +28,7 @@
 
 struct cui_opt_data {
        const char *name;
-       struct pb_kexec_data *kd;
+       struct pb_boot_data *bd;
 
        /* optional data */
        const struct device *dev;
@@ -59,11 +59,11 @@ struct cui {
        struct pjs *pjs;
        void *platform_info;
        unsigned int default_item;
-       int (*on_kexec)(struct cui *cui, struct cui_opt_data *cod);
+       int (*on_boot)(struct cui *cui, struct cui_opt_data *cod);
 };
 
 struct cui *cui_init(void* platform_info,
-       int (*on_kexec)(struct cui *, struct cui_opt_data *),
+       int (*on_boot)(struct cui *, struct cui_opt_data *),
        int (*js_map)(const struct js_event *e), int start_deamon, int dry_run);
 struct nc_scr *cui_set_current(struct cui *cui, struct nc_scr *scr);
 int cui_run(struct cui *cui, struct pmenu *main, unsigned int default_item);