#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <glib.h>
Go to the source code of this file.
|
struct evloop * | evloop_create (evloop_error_handler_t ehandler) |
|
int | evloop_maxsize (struct evloop *evloop) |
|
int | evloop_set_fd (struct evloop *evloop, int fd, int fdtype, evloop_handler_t handler, void *state) |
|
int | evloop_unset_fd (struct evloop *evloop, int fd, int fdtype) |
|
int | evloop_run (struct evloop *evloop, evloop_flags_t flags, struct timeval *timeout, struct evloop_fdinfo **error_fdinfo) |
|
int | evloop_handleone (struct evloop *evloop, evloop_flags_t flags, struct timeval *timeout, struct evloop_fdinfo **handled_fdinfo, int *handled_fdtype, int *handled_hrc) |
|
void | evloop_free (struct evloop *evloop) |
|
#define EVLOOP_FDTYPE_A 0 |
#define EVLOOP_FDTYPE_R 1 |
#define EVLOOP_FDTYPE_W 2 |
#define EVLOOP_FDTYPE_X 3 |
#define EVLOOP_HRET_BADERROR -2 |
#define EVLOOP_HRET_DONE_FAILURE 4 |
#define EVLOOP_HRET_DONE_SUCCESS 3 |
#define EVLOOP_HRET_ERROR -1 |
#define EVLOOP_HRET_REMOVEALLTYPES 2 |
#define EVLOOP_HRET_REMOVETYPE 1 |
#define EVLOOP_HRET_SUCCESS 0 |
typedef int(* evloop_error_handler_t)(int errortype, int fd, int fdtype, struct evloop_fdinfo *error_fdinfo) |
typedef int(* evloop_handler_t)(int fd, int fdtype, void *state) |
Enumerator |
---|
EVLOOP_RETONINT |
|
Definition at line 45 of file evloop.h.
void evloop_free |
( |
struct evloop * |
evloop | ) |
|
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_maxsize |
( |
struct evloop * |
evloop | ) |
|
int evloop_unset_fd |
( |
struct evloop * |
evloop, |
|
|
int |
fd, |
|
|
int |
fdtype |
|
) |
| |