2 * ion/mainloop/select.h
4 * Based on a contributed readfds code.
6 * See the included file LICENSE for details.
9 #ifndef ION_LIBMAINLOOP_SELECT_H
10 #define ION_LIBMAINLOOP_SELECT_H
15 #include <libtu/obj.h>
16 #include <libtu/types.h>
23 void (*process_input_fn
)(int fd
, void *data
);
24 WInputFd
*next
, *prev
;
27 extern bool mainloop_register_input_fd(int fd
, void *data
,
28 void (*callback
)(int fd
, void *data
));
29 extern void mainloop_unregister_input_fd(int fd
);
31 extern void mainloop_select();
33 #endif /* ION_LIBMAINLOOP_SELECT_H */