ui/ncurses: Move menu initialisation to cui code
authorJeremy Kerr <jk@ozlabs.org>
Thu, 24 Jul 2014 07:13:24 +0000 (15:13 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 28 Jul 2014 05:50:35 +0000 (13:50 +0800)
commite596e8e66b014161116c207daa8d42cff849bfd2
tree5c32aa7165907d85f1d015c058806d5375d6f28c
parent0bacabfe38d4e6721d4b32c11c6ef5bff599492c
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>
po/POTFILES.in
po/en.po
ui/ncurses/Makefile.am
ui/ncurses/generic-main-help.c [deleted file]
ui/ncurses/generic-main.c
ui/ncurses/nc-cui-help.c [new file with mode: 0644]
ui/ncurses/nc-cui.c
ui/ncurses/nc-cui.h
ui/ncurses/nc-menu.c
ui/ncurses/nc-menu.h