22 #include <sys/select.h>
24 #include <sys/types.h>
29 #define EVLOOP_FDTYPE_A 0
30 #define EVLOOP_FDTYPE_R 1
31 #define EVLOOP_FDTYPE_W 2
32 #define EVLOOP_FDTYPE_X 3
34 #define EVLOOP_HRET_BADERROR -2
35 #define EVLOOP_HRET_ERROR -1
36 #define EVLOOP_HRET_SUCCESS 0
37 #define EVLOOP_HRET_REMOVETYPE 1
38 #define EVLOOP_HRET_REMOVEALLTYPES 2
39 #define EVLOOP_HRET_DONE_SUCCESS 3
40 #define EVLOOP_HRET_DONE_FAILURE 4
131 struct timeval *timeout,
133 int *handled_fdtype,
int *handled_hrc);
int evloop_unset_fd(struct evloop *evloop, int fd, int fdtype)
void evloop_free(struct evloop *evloop)
evloop_error_handler_t eh
int evloop_handleone(struct evloop *evloop, evloop_flags_t flags, struct timeval *timeout, struct evloop_fdinfo **handled_fdinfo, int *handled_fdtype, int *handled_hrc)
int evloop_run(struct evloop *evloop, evloop_flags_t flags, struct timeval *timeout, struct evloop_fdinfo **error_fdinfo)
int evloop_set_fd(struct evloop *evloop, int fd, int fdtype, evloop_handler_t handler, void *state)
int evloop_maxsize(struct evloop *evloop)
struct evloop * evloop_create(evloop_error_handler_t ehandler)
int(* evloop_error_handler_t)(int errortype, int fd, int fdtype, struct evloop_fdinfo *error_fdinfo)
int(* evloop_handler_t)(int fd, int fdtype, void *state)