diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-10-17 13:52:42 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-13 17:47:20 +0800 |
commit | 651940467773d2e679f9210e02f4654fb05cd449 (patch) | |
tree | 5268fc4a6ec34a3aaffb89bec2ba0bbca454fb5c /ui/ncurses/nc-cui.h | |
parent | 8f36cfac8a6cbb9a2750824b704b3cc4b9db5c49 (diff) | |
download | talos-petitboot-651940467773d2e679f9210e02f4654fb05cd449.tar.gz talos-petitboot-651940467773d2e679f9210e02f4654fb05cd449.zip |
ui/ncurses: Add sysinfo screen
Add a simple screen for displaying the struct system_info. We add this
to the main menu as a selectable option, and separate it from the boot
option list with an unselectable blank entry.
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, 2 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui.h b/ui/ncurses/nc-cui.h index 730e721..d1edd79 100644 --- a/ui/ncurses/nc-cui.h +++ b/ui/ncurses/nc-cui.h @@ -56,6 +56,7 @@ struct cui { struct waitset *waitset; struct discover_client *client; struct system_info *sysinfo; + struct sysinfo_screen *sysinfo_screen; struct pjs *pjs; void *platform_info; unsigned int default_item; @@ -69,6 +70,7 @@ 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); void cui_item_edit(struct pmenu_item *item); void cui_item_new(struct pmenu *menu); +void cui_show_sysinfo(struct cui *cui); /* convenience routines */ |