]> git.ozlabs.org Git - petitboot/commit
waiter: Don't rely on global variables to keep waiter state
authorJeremy Kerr <jk@ozlabs.org>
Wed, 10 Apr 2013 02:19:13 +0000 (12:19 +1000)
committerGeoff Levand <geoff@infradead.org>
Wed, 10 Apr 2013 17:49:20 +0000 (10:49 -0700)
commit37428306a270088bfcb1f94362a0fe5b7a5a888e
tree5d1aeca3eca44b68a8f8939e3bea44709a953aa9
parentee86a0bd989511319adf3467b41b5b2e1f486aa6
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>
16 files changed:
discover/discover-server.c
discover/discover-server.h
discover/pb-discover.c
discover/udev.c
discover/udev.h
discover/user-event.c
discover/user-event.h
lib/waiter/waiter.c
lib/waiter/waiter.h
ui/ncurses/nc-cui.c
ui/ncurses/nc-cui.h
ui/twin/main-generic.c
ui/twin/pbt-client.c
ui/twin/pbt-client.h
ui/twin/pbt-scr.c
ui/twin/pbt-scr.h