diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-31 01:33:41 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-31 01:33:41 +0200 |
commit | 7d88315fea1448fc3f0e33c7a8a00ec12458b473 (patch) | |
tree | 94c579f7021251e079d8e6b7ecdecb9fce2029b6 /seatd | |
parent | 8e1bf10d9decab347455b3036143b21d7f90d390 (diff) |
poller: Make event sources opaque
Diffstat (limited to 'seatd')
-rw-r--r-- | seatd/poller.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/seatd/poller.c b/seatd/poller.c index f786d47..0631f4b 100644 --- a/seatd/poller.c +++ b/seatd/poller.c @@ -10,6 +10,30 @@ #include "list.h" #include "poller.h" +struct event_source_fd { + const struct event_source_fd_impl *impl; + event_source_fd_func_t func; + + int fd; + uint32_t mask; + void *data; + + struct poller *poller; + bool killed; +}; + +struct event_source_signal { + const struct event_source_signal_impl *impl; + event_source_signal_func_t func; + + int signal; + void *data; + + struct poller *poller; + bool raised; + bool killed; +}; + /* Used for signal handling */ struct poller *global_poller = NULL; |