X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-cui.h;h=417126f8d57b38d99b4b3772ac7fc7bc9f13c977;hp=e59a6b67c4de4695b7065947b0200606a1122cff;hb=e596e8e66b014161116c207daa8d42cff849bfd2;hpb=140f5b13c7513b2d594457cc8d7d0cb1a7d844a4 diff --git a/ui/ncurses/nc-cui.h b/ui/ncurses/nc-cui.h index e59a6b6..417126f 100644 --- a/ui/ncurses/nc-cui.h +++ b/ui/ncurses/nc-cui.h @@ -23,6 +23,7 @@ #include "ui/common/joystick.h" #include "nc-menu.h" +#include "nc-helpscreen.h" struct cui_opt_data { const char *name; @@ -70,13 +71,15 @@ 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); void cui_show_config(struct cui *cui); -void cui_show_help(struct cui *cui, const char *title, const char *text); +void cui_show_help(struct cui *cui, const char *title, + const struct help_text *text); int cui_send_config(struct cui *cui, struct config *config); +void cui_send_reinit(struct cui *cui); /* convenience routines */