xref: /haiku/headers/os/drivers/Select.h (revision e6b30aee0fd7a23d6a6baab9f3718945a0cd838a)
1 /* File System and Drivers select support
2 **
3 ** Distributed under the terms of the Haiku License.
4 */
5 #ifndef _DRIVERS_SELECT_H
6 #define _DRIVERS_SELECT_H
7 
8 
9 #include <SupportDefs.h>
10 
11 
12 struct selectsync;
13 typedef struct selectsync selectsync;
14 
15 enum select_events {
16 	B_SELECT_READ = 1,			// standard select() support
17 	B_SELECT_WRITE,
18 	B_SELECT_ERROR,
19 
20 	B_SELECT_PRI_READ,			// additional poll() support
21 	B_SELECT_PRI_WRITE,
22 
23 	B_SELECT_HIGH_PRI_READ,
24 	B_SELECT_HIGH_PRI_WRITE,
25 
26 	B_SELECT_DISCONNECTED
27 };
28 
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 extern status_t notify_select_event(struct selectsync *sync, uint8 event);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* _DRIVERS_SELECT_H */
41