21 #ifndef __EDELIB_LISTENER_H__
22 #define __EDELIB_LISTENER_H__
24 #include "edelib-global.h"
51 EDELIB_API
void listener_add_fd(
int fd,
int when,
void(*cb)(
int,
void*),
void* arg = 0);
56 EDELIB_API
inline void listener_add_fd(
int fd,
void(*cb)(
int,
void*),
void* arg = 0) {
@ LISTENER_EXCEPT
callback is called when exception happens on descriptor
Definition: Listener.h:31
@ LISTENER_WRITE
callback is called when there is data to be written without blocking
Definition: Listener.h:30
void listener_add_fd(int fd, int when, void(*cb)(int, void *), void *arg=0)
@ LISTENER_READ
callback is called when there is data to be read
Definition: Listener.h:29
double listener_wait(double t)
void listener_remove_fd(int fd, int when)