Harald Welte | 52b1f98 | 2008-12-23 20:25:15 +0000 | [diff] [blame^] | 1 | #ifndef _BSC_SELECT_H |
2 | #define _BSC_SELECT_H | ||||
3 | |||||
4 | #define BSC_FD_READ 0x0001 | ||||
5 | #define BSC_FD_WRITE 0x0002 | ||||
6 | #define BSC_FD_EXCEPT 0x0004 | ||||
7 | |||||
8 | struct bsc_fd { | ||||
9 | struct llist_head list; | ||||
10 | int fd; | ||||
11 | unsigned int when; | ||||
12 | int (*cb)(struct bsc_fd *fd, unsigned int what); | ||||
13 | void *data; | ||||
14 | unsigned int priv_nr; | ||||
15 | }; | ||||
16 | |||||
17 | #endif /* _BSC_SELECT_H */ |