X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-scr.c;fp=ui%2Fncurses%2Fnc-scr.c;h=e8c5fcabc1b783b46ba051c1db45ec415a50b329;hp=c6172e1e4c6d11e0e022d92cbc6fef9a2f7c90c8;hb=d57d1c9c4cd7365063da7aa1f018736166bb3a50;hpb=31ae49c6bfaa3cd65969bff7448be0f6385a6255 diff --git a/ui/ncurses/nc-scr.c b/ui/ncurses/nc-scr.c index c6172e1..e8c5fca 100644 --- a/ui/ncurses/nc-scr.c +++ b/ui/ncurses/nc-scr.c @@ -40,6 +40,20 @@ static void nc_scr_status_draw(struct nc_scr *scr) scr->frame.status); } +int nc_scr_post(struct nc_scr *scr) +{ + if (scr->post) + return scr->post(scr); + return 0; +} + +int nc_scr_unpost(struct nc_scr *scr) +{ + if (scr->unpost) + return scr->unpost(scr); + return 0; +} + void nc_scr_frame_draw(struct nc_scr *scr) { int ltitle_len, rtitle_len;