Be more forgiving when XCreateFontSet creates a fontset with missing charsets
[notion/jeffpc.git] / libmainloop / select.h
blob91204ccf0dbdddc4ff8894bb31dc825507e36dc7
1 /*
2 * ion/mainloop/select.h
3 *
4 * Based on a contributed readfds code.
5 *
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_LIBMAINLOOP_SELECT_H
10 #define ION_LIBMAINLOOP_SELECT_H
12 #include <stdlib.h>
13 #include <unistd.h>
14 #include <sys/time.h>
15 #include <libtu/obj.h>
16 #include <libtu/types.h>
18 INTRSTRUCT(WInputFd);
20 DECLSTRUCT(WInputFd){
21 int fd;
22 void *data;
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 */