diff options
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/core/select.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocom/core/select.h b/include/osmocom/core/select.h index b6fed3c7..1ba6b832 100644 --- a/include/osmocom/core/select.h +++ b/include/osmocom/core/select.h @@ -6,6 +6,7 @@ #include <osmocom/core/linuxlist.h> #include <stdbool.h> +#include <time.h> /*! \defgroup select Select loop abstraction * @{ @@ -54,4 +55,10 @@ struct osmo_fd *osmo_fd_get_by_fd(int fd); int osmo_fd_fill_fds(void *readset, void *writeset, void *exceptset); int osmo_fd_disp_fds(void *readset, void *writeset, void *exceptset); +/* timerfd integration */ +int osmo_timerfd_disable(struct osmo_fd *ofd); +int osmo_timerfd_schedule(struct osmo_fd *ofd, const struct timespec *first, + const struct timespec *interval); +int osmo_timerfd_setup(struct osmo_fd *ofd, int (*cb)(struct osmo_fd *, unsigned int), void *data); + /*! @} */ |