int fr_event_list_num_fds(fr_event_list_t *el);
int fr_event_list_num_elements(fr_event_list_t *el);
+int fr_event_list_kq(fr_event_list_t *el);
int fr_event_list_time(struct timeval *when, fr_event_list_t *el);
int fr_event_fd_delete(fr_event_list_t *el, int fd);
return fr_heap_num_elements(el->times);
}
+/** Return the kq associated with an event list.
+ *
+ * @param[in] el to return timer events for.
+ * @return kq
+ */
+int fr_event_list_kq(fr_event_list_t *el)
+{
+ if (!el) return -1;
+
+ return el->kq;
+}
+
/** Get the current time according to the event list
*
* If the event list is currently dispatching events, we return the time