*/
struct boot_editor {
- struct nc_scr scr;
- FORM *ncf;
- FIELD **fields;
+ struct nc_scr scr;
+ FORM *ncf;
+ FIELD **fields;
+ void *data;
+ struct pmenu *original_pmenu;
+ void (*on_exit)(struct boot_editor *boot_editor,
+ enum boot_editor_result result,
+ struct pb_boot_data *bd);
enum boot_editor_attr_cursor attr_cursor;
- void (*on_exit)(struct boot_editor *boot_editor,
- enum boot_editor_result result,
- struct pb_boot_data *bd);
};
-struct boot_editor *boot_editor_init(void *ui_ctx,
+struct boot_editor *boot_editor_init(struct pmenu *menu,
const struct pb_boot_data *bd,
void (*on_exit)(struct boot_editor *,
enum boot_editor_result,