#ifndef YASL_COMMON_LOOP_H #define YASL_COMMON_LOOP_H #include "yasl/loop.h" struct pollfd; int yasl_loop_next_timeout_ms(const struct yasl_loop *l); /* The loop's current poll set, valid until the next watch change. Backends * that wait on native events use it to wake on loop readiness. */ int yasl_loop_poll_set(const struct yasl_loop *l, const struct pollfd **fds); /* Whether id is armed: added, not deleted, and not retired by its callback. */ bool yasl_loop_timer_armed(const struct yasl_loop *l, yasl_timer_id id); #endif /* YASL_COMMON_LOOP_H */