int mainloop_remove_fd(int fd)
void(* mainloop_timeout_func)(int id, void *user_data)
int mainloop_add_timeout(unsigned int msec, mainloop_timeout_func callback, void *user_data, mainloop_destroy_func destroy)
int mainloop_modify_fd(int fd, uint32_t events)
void mainloop_exit_success(void)
void(* mainloop_event_func)(int fd, uint32_t events, void *user_data)
int mainloop_remove_timeout(int id)
void mainloop_exit_failure(void)
void(* mainloop_signal_func)(int signum, void *user_data)
int mainloop_set_signal(sigset_t *mask, mainloop_signal_func callback, void *user_data, mainloop_destroy_func destroy)
int mainloop_add_fd(int fd, uint32_t events, mainloop_event_func callback, void *user_data, mainloop_destroy_func destroy)
int mainloop_modify_timeout(int fd, unsigned int msec)
void(* mainloop_destroy_func)(void *user_data)