va_end(va);
}
-void
-delete_timeouts( void *arg, void (*callback)(void *), ...)
-{
- va_list va;
-
- va_start(va, callback);
- v_delete_q_timeouts(0, arg, callback, va);
- va_end(va);
-}
-
void
delete_q_timeout(int queue, void (*callback)(void *), void *arg)
{
#define add_timeout_tv(a, b, c) add_q_timeout_tv(ELOOP_QUEUE, a, b, c)
#define add_timeout_sec(a, b, c) add_q_timeout_sec(ELOOP_QUEUE, a, b, c)
#define delete_timeout(a, b) delete_q_timeout(ELOOP_QUEUE, a, b)
+#define delete_timeouts(a, ...) delete_q_timeouts(ELOOP_QUEUE, a, __VA_ARGS__)
void add_event(int fd, void (*)(void *), void *);
void delete_event(int fd);
void *);
void delete_q_timeout(int, void (*)(void *), void *);
void delete_q_timeouts(int, void *, void (*)(void *), ...);
-void delete_timeouts(void *, void (*)(void *), ...);
void start_eloop(void);
#endif