diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-10-21 18:55:06 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-13 17:55:35 +0800 |
commit | 3b8b270bd7a54a9ba7506d9eec1901c6f3027ebf (patch) | |
tree | 210605d7d91c08dd161bbaae392a51f1b47e6f47 /ui/ncurses/nc-boot-editor.h | |
parent | 43e9c8147f74fba794fd280fa0fdb57af8b968f4 (diff) | |
download | talos-petitboot-3b8b270bd7a54a9ba7506d9eec1901c6f3027ebf.tar.gz talos-petitboot-3b8b270bd7a54a9ba7506d9eec1901c6f3027ebf.zip |
ui/ncurses: Use nc-widgets for boot editor
Now that we have a simple widget set available, use this for the boot
editor.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-boot-editor.h')
-rw-r--r-- | ui/ncurses/nc-boot-editor.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/ui/ncurses/nc-boot-editor.h b/ui/ncurses/nc-boot-editor.h index dc849b3..7aa715e 100644 --- a/ui/ncurses/nc-boot-editor.h +++ b/ui/ncurses/nc-boot-editor.h @@ -61,15 +61,26 @@ enum boot_editor_result { struct boot_editor { struct nc_scr scr; - FORM *ncf; - FIELD **fields; - FIELD *button_ok, *button_cancel; 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; + + struct nc_widgetset *widgetset; + struct { + struct nc_widget_label *image_l; + struct nc_widget_textbox *image_f; + struct nc_widget_label *initrd_l; + struct nc_widget_textbox *initrd_f; + struct nc_widget_label *dtb_l; + struct nc_widget_textbox *dtb_f; + struct nc_widget_label *args_l; + struct nc_widget_textbox *args_f; + struct nc_widget_button *ok_b; + struct nc_widget_button *cancel_b; + } widgets; }; struct boot_editor *boot_editor_init(struct pmenu *menu, |