X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-scr.h;h=e3ed20a8502d8de3cad30f0fe6d1a3e475a62fb8;hp=5c4b97b1c89418acc8719edf1d6ca5deb01a69d2;hb=3b8b270bd7a54a9ba7506d9eec1901c6f3027ebf;hpb=31ae49c6bfaa3cd65969bff7448be0f6385a6255 diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h index 5c4b97b..e3ed20a 100644 --- a/ui/ncurses/nc-scr.h +++ b/ui/ncurses/nc-scr.h @@ -40,11 +40,12 @@ enum pb_nc_sig { - pb_cui_sig = 111, - pb_pmenu_sig = 222, - pb_item_sig = 333, - pb_boot_editor_sig = 444, - pb_removed_sig = -555, + pb_cui_sig = 111, + pb_pmenu_sig = 222, + pb_item_sig = 333, + pb_boot_editor_sig = 444, + pb_sysinfo_screen_sig = 555, + pb_removed_sig = -666, }; static inline void nc_flush_keys(void) @@ -64,6 +65,7 @@ enum nc_scr_pos { nc_scr_pos_status = 1, nc_scr_frame_lines = 5, + nc_scr_frame_cols = 1, }; struct nc_frame { @@ -95,4 +97,7 @@ void nc_scr_status_free(struct nc_scr *scr); void nc_scr_status_printf(struct nc_scr *scr, const char *format, ...); void nc_scr_frame_draw(struct nc_scr *scr); +int nc_scr_post(struct nc_scr *src); +int nc_scr_unpost(struct nc_scr *src); + #endif