path: root/discover/user-event.h
diff options
authorJeremy Kerr <>2013-04-10 12:19:13 +1000
committerGeoff Levand <>2013-04-10 10:49:20 -0700
commit37428306a270088bfcb1f94362a0fe5b7a5a888e (patch)
tree5d1aeca3eca44b68a8f8939e3bea44709a953aa9 /discover/user-event.h
parentee86a0bd989511319adf3467b41b5b2e1f486aa6 (diff)
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 <>
Diffstat (limited to 'discover/user-event.h')
1 files changed, 3 insertions, 1 deletions
diff --git a/discover/user-event.h b/discover/user-event.h
index e134d0c..383bdd0 100644
--- a/discover/user-event.h
+++ b/discover/user-event.h
@@ -25,8 +25,10 @@
#define PBOOT_USER_EVENT_SIZE (1 * 1024)
struct user_event;
+struct waitset;
-struct user_event *user_event_init(struct device_handler *handler);
+struct user_event *user_event_init(struct waitset *waitset,
+ struct device_handler *handler);
void user_event_trigger(struct user_event *uev);
void user_event_destroy(struct user_event *uev);
OpenPOWER on IntegriCloud