From 37428306a270088bfcb1f94362a0fe5b7a5a888e Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 10 Apr 2013 12:19:13 +1000 Subject: waiter: Don't rely on global variables to keep waiter state Rather than defining the set of waiters (and pollfds) in waiter.c, add a struct waitset to contain these. A waitset is created with waitset_create, which is passed to the waiter_* functions. Signed-off-by: Jeremy Kerr Signed-off-by: Geoff Levand --- ui/ncurses/nc-cui.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/ncurses/nc-cui.h') diff --git a/ui/ncurses/nc-cui.h b/ui/ncurses/nc-cui.h index 90eef1c..ddbf27f 100644 --- a/ui/ncurses/nc-cui.h +++ b/ui/ncurses/nc-cui.h @@ -55,6 +55,7 @@ struct cui { struct nc_scr *current; struct pmenu *main; struct ui_timer timer; + struct waitset *waitset; struct pjs *pjs; void *platform_info; unsigned int default_item; -- cgit v1.2.1