diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-12-10 11:48:25 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-01-31 08:46:34 +0800 |
commit | 140f5b13c7513b2d594457cc8d7d0cb1a7d844a4 (patch) | |
tree | 963071659ac423bf8c7f4da9a67460556d228fc2 /ui/ncurses/nc-cui.h | |
parent | 702f9c313dea66817cf05196d84cd07889e80c51 (diff) | |
download | talos-petitboot-140f5b13c7513b2d594457cc8d7d0cb1a7d844a4.tar.gz talos-petitboot-140f5b13c7513b2d594457cc8d7d0cb1a7d844a4.zip |
ui/ncurses: Add support for help screens
Add a textscreen-based help screen system, triggered from the cui
module's cui_show_help()
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 90af361..e59a6b6 100644 --- a/ui/ncurses/nc-cui.h +++ b/ui/ncurses/nc-cui.h @@ -59,6 +59,7 @@ struct cui { struct config *config; struct config_screen *config_screen; struct boot_editor *boot_editor; + struct help_screen *help_screen; struct pjs *pjs; void *platform_info; unsigned int default_item; @@ -74,6 +75,7 @@ void cui_item_edit(struct pmenu_item *item); void cui_item_new(struct pmenu *menu); void cui_show_sysinfo(struct cui *cui); void cui_show_config(struct cui *cui); +void cui_show_help(struct cui *cui, const char *title, const char *text); int cui_send_config(struct cui *cui, struct config *config); /* convenience routines */ |