#pragma once #include "eventloop.h" int owd_platform_el_init(struct owd_eventloop *el); void owd_platform_el_cleanup(struct owd_eventloop *el); void owd_platform_el_event_remove(struct owd_eventloop *el, struct owd_event *e); void owd_platform_el_event_cleanup(struct owd_eventloop *el, struct owd_event *e); int owd_platform_el_event_clear(struct owd_eventloop *el, struct owd_event *e); int owd_platform_el_wait(struct owd_eventloop *el, owd_event_id_t *id_out, const struct timespec *timeout); int owd_platform_el_add_timer(struct owd_eventloop *el, struct owd_event *e, uint64_t millis, bool oneshot); int owd_platform_el_add_fd(struct owd_eventloop *el, struct owd_event *e, int fd, uint32_t flags);