1/*
2 * Copyright 2004-2010, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _DRIVERS_SELECT_H
6#define _DRIVERS_SELECT_H
7
8
9#include <SupportDefs.h>
10
11
12struct selectsync;
13typedef struct selectsync selectsync;
14
15enum 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
31extern "C" {
32#endif
33
34extern status_t notify_select_event(struct selectsync *sync, uint8 event);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif	/* _DRIVERS_SELECT_H */
41