X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-scr.h;h=f18753a4a74c128a3d04ffffb38bcb4c308936d1;hp=bda2c3241df0e6cb026f32a10f25cc7ef5f14138;hb=293fca73b2fe077e7780c1a42216a3db41a6e737;hpb=6d51866f409e90274ff8cfb06b92a6c828692698 diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h index bda2c32..f18753a 100644 --- a/ui/ncurses/nc-scr.h +++ b/ui/ncurses/nc-scr.h @@ -33,11 +33,11 @@ enum pb_nc_sig { - pb_cui_sig = 111, - pb_pmenu_sig = 222, - pb_item_sig = 333, - pb_ked_sig = 444, - pb_removed_sig = -555, + pb_cui_sig = 111, + pb_pmenu_sig = 222, + pb_item_sig = 333, + pb_boot_editor_sig = 444, + pb_removed_sig = -555, }; void nc_start(void); @@ -75,13 +75,13 @@ struct nc_scr { void *ui_ctx; int (*post)(struct nc_scr *scr); int (*unpost)(struct nc_scr *scr); - void (*process_key)(struct nc_scr *scr); + void (*process_key)(struct nc_scr *scr, int key); void (*resize)(struct nc_scr *scr); }; int nc_scr_init(struct nc_scr *scr, enum pb_nc_sig sig, int begin_x, void *ui_ctx, - void (*process_key)(struct nc_scr *), + void (*process_key)(struct nc_scr *, int), int (*post)(struct nc_scr *), int (*unpost)(struct nc_scr *), void (*resize)(struct nc_scr *));