2 * ion/mainloop/select.h
4 * Based on a contributed readfds code.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
12 #ifndef ION_LIBMAINLOOP_SELECT_H
13 #define ION_LIBMAINLOOP_SELECT_H
18 #include <libtu/obj.h>
19 #include <libtu/types.h>
26 void (*process_input_fn)(int fd, void *data);
27 WInputFd *next, *prev;
30 extern bool mainloop_register_input_fd(int fd, void *data,
31 void (*callback)(int fd, void *data));
32 extern void mainloop_unregister_input_fd(int fd);
34 extern void mainloop_select();
36 #endif /* ION_LIBMAINLOOP_SELECT_H */