diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-07-24 15:13:24 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-07-28 13:50:35 +0800 |
commit | e596e8e66b014161116c207daa8d42cff849bfd2 (patch) | |
tree | 5c32aa7165907d85f1d015c058806d5375d6f28c /ui/ncurses/nc-cui.h | |
parent | 0bacabfe38d4e6721d4b32c11c6ef5bff599492c (diff) | |
download | petitboot-e596e8e66b014161116c207daa8d42cff849bfd2.zip petitboot-e596e8e66b014161116c207daa8d42cff849bfd2.tar.gz |
ui/ncurses: Move menu initialisation to cui code
We'll want to re-initialise the petitboot main menu (when the language
is changed), which we can't do if the items are populated entirely from
the main() function.
This change moves the menu initilisation to the cui code, we we can
re-init when necessary.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-cui.h')
-rw-r--r-- | ui/ncurses/nc-cui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ncurses/nc-cui.h b/ui/ncurses/nc-cui.h index e9e4d38..417126f 100644 --- a/ui/ncurses/nc-cui.h +++ b/ui/ncurses/nc-cui.h @@ -71,7 +71,7 @@ struct cui *cui_init(void* platform_info, int (*js_map)(const struct js_event *e), int start_deamon); 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); +int cui_run(struct cui *cui); void cui_item_edit(struct pmenu_item *item); void cui_item_new(struct pmenu *menu); void cui_show_sysinfo(struct cui *cui); |