diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-04-10 12:19:13 +1000 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-04-10 10:49:20 -0700 |
commit | 37428306a270088bfcb1f94362a0fe5b7a5a888e (patch) | |
tree | 5d1aeca3eca44b68a8f8939e3bea44709a953aa9 /ui/ncurses/nc-cui.h | |
parent | ee86a0bd989511319adf3467b41b5b2e1f486aa6 (diff) | |
download | petitboot-37428306a270088bfcb1f94362a0fe5b7a5a888e.zip petitboot-37428306a270088bfcb1f94362a0fe5b7a5a888e.tar.gz |
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 <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'ui/ncurses/nc-cui.h')
-rw-r--r-- | ui/ncurses/nc-cui.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |