27 #ifndef __MOEP80211_SYSTEM_H
28 #define __MOEP80211_SYSTEM_H
30 #include <sys/epoll.h>
31 #include <sys/signalfd.h>
33 #include <moep/types.h>
143 int moep_wait(
int epfd,
struct epoll_event *events,
int maxevents,
int timeout,
144 const sigset_t *sigmask);
162 typedef int (*
sig_handler)(
struct signalfd_siginfo *siginfo,
void *);
void moep_set_custom_wait(int(*wait)(int, struct epoll_event *, int, int, const sigset_t *))
set a custom wait call
int moep_callback_delete(moep_callback_t callback)
delete a moep callback
moep_callback_t moep_callback_create(int fd, cb_handler handler, void *data, u32 events)
create a new moep callback
int(* sig_handler)(struct signalfd_siginfo *siginfo, void *)
a signal handler
Definition: system.h:162
int moep_run(sig_handler sigh, void *data)
run the moep multiplexer
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
int(* cb_handler)(int, u32, void *)
a callback handler
Definition: system.h:58
struct moep_callback * moep_callback_t
a moep callback
Definition: system.h:43
int moep_callback_change(moep_callback_t callback, u32 events)
change a moep callback