#ifndef YASL_PRIVATE_COMMON_LOOP_H #define YASL_PRIVATE_COMMON_LOOP_H #include "common/private_loop.h" struct pollfd; int yasl_private_loop_next_timeout_ms(const struct yasl_private_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_private_loop_poll_set(const struct yasl_private_loop *l, const struct pollfd **fds); /* Whether id is armed: added, not deleted, and not retired by its callback. */ bool yasl_private_loop_timer_armed(const struct yasl_private_loop *l, yasl_private_timer_id id); #endif /* YASL_PRIVATE_COMMON_LOOP_H */