aboutsummaryrefslogtreecommitdiff
path: root/include/poller.h
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-31 03:14:51 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-31 14:09:59 +0200
commitd17632fadd1f901aa1fd41aceb06663019d73ade (patch)
treea26c6a73f8231dc5dfd3132027c8ecce36453938 /include/poller.h
parentbbfb770c73498413055c7af8d3e1b8db36560016 (diff)
poller: Convert to linked_list
Diffstat (limited to 'include/poller.h')
-rw-r--r--include/poller.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/poller.h b/include/poller.h
index 0142add..f30bbda 100644
--- a/include/poller.h
+++ b/include/poller.h
@@ -4,7 +4,7 @@
#include <stdbool.h>
#include <stdint.h>
-#include "list.h"
+#include "linked_list.h"
/*
* These are the event types available from the poller.
@@ -68,15 +68,13 @@ int event_source_signal_destroy(struct event_source_signal *event_source);
* The poller base class. This must be created by poller_create.
*/
struct poller {
- struct list signals;
- struct list new_signals;
- struct list fds;
- struct list new_fds;
+ struct linked_list signals;
+ struct linked_list fds;
struct pollfd *pollfds;
size_t pollfds_len;
- bool dirty;
- bool inpoll;
+ size_t fd_event_sources;
+ bool pollfds_dirty;
};
/**