You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
728 B
C

#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, uint32_t *flags_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);