]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-scr.h
ui/ncurses: move getch() out of process_key callbacks
[petitboot] / ui / ncurses / nc-scr.h
index 0658dd06139844bf2c90887d4b21a25f28d5767c..f18753a4a74c128a3d04ffffb38bcb4c308936d1 100644 (file)
@@ -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 *));