Moep Library  2.0-nc
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
system.h File Reference
#include <sys/epoll.h>
#include <sys/signalfd.h>
#include <moep/types.h>

Go to the source code of this file.

Typedefs

typedef struct moep_callback * moep_callback_t
 a moep callback More...
 
typedef int(* cb_handler )(int, u32, void *)
 a callback handler More...
 
typedef int(* sig_handler )(struct signalfd_siginfo *siginfo, void *)
 a signal handler More...
 

Functions

moep_callback_t moep_callback_create (int fd, cb_handler handler, void *data, u32 events)
 create a new moep callback More...
 
int moep_callback_change (moep_callback_t callback, u32 events)
 change a moep callback More...
 
int moep_callback_delete (moep_callback_t callback)
 delete a moep callback More...
 
void moep_set_custom_wait (int(*wait)(int, struct epoll_event *, int, int, const sigset_t *))
 set a custom wait call More...
 
int moep_wait (int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask)
 wait for an I/O event on an epoll file descriptor More...
 
int moep_run (sig_handler sigh, void *data)
 run the moep multiplexer More...