Add API to determine next timeout

This commit is contained in:
Daniel Drake
2008-03-01 12:16:31 +00:00
parent 3ea28e334d
commit b167dd02fc
2 changed files with 28 additions and 0 deletions

View File

@@ -276,6 +276,7 @@ struct fp_pollfd {
int fp_handle_events_timeout(struct timeval *timeout);
int fp_handle_events(void);
size_t fp_get_pollfds(struct fp_pollfd **pollfds);
int fp_get_next_timeout(struct timeval *tv);
typedef void (*fp_pollfd_added_cb)(int fd, short events);
typedef void (*fp_pollfd_removed_cb)(int fd);