diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-10-16 11:30:29 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-13 17:31:04 +0800 |
commit | d57d1c9c4cd7365063da7aa1f018736166bb3a50 (patch) | |
tree | 71581953001d5bc44203fe3d4d03eac4c7a42b9c /ui/ncurses/nc-scr.h | |
parent | 31ae49c6bfaa3cd65969bff7448be0f6385a6255 (diff) | |
download | talos-petitboot-d57d1c9c4cd7365063da7aa1f018736166bb3a50.tar.gz talos-petitboot-d57d1c9c4cd7365063da7aa1f018736166bb3a50.zip |
ui/ncurses: Add nc_scr_{un,}post()
We may have nc_scrs that aren't interested in post/unpost information,
so create helper functions that allow a NULL callback.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-scr.h')
-rw-r--r-- | ui/ncurses/nc-scr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h index 5c4b97b..775e8de 100644 --- a/ui/ncurses/nc-scr.h +++ b/ui/ncurses/nc-scr.h @@ -95,4 +95,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 |