2004-10-01 04:28:57 +04:00
|
|
|
/* File System and Drivers select support
|
|
|
|
**
|
|
|
|
** Distributed under the terms of the Haiku License.
|
|
|
|
*/
|
|
|
|
#ifndef _DRIVERS_SELECT_H
|
|
|
|
#define _DRIVERS_SELECT_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
|
|
|
struct selectsync;
|
|
|
|
typedef struct selectsync selectsync;
|
|
|
|
|
|
|
|
enum select_events {
|
|
|
|
B_SELECT_READ = 1, // standard select() support
|
|
|
|
B_SELECT_WRITE,
|
|
|
|
B_SELECT_ERROR,
|
|
|
|
|
|
|
|
B_SELECT_PRI_READ, // additional poll() support
|
|
|
|
B_SELECT_PRI_WRITE,
|
|
|
|
|
|
|
|
B_SELECT_HIGH_PRI_READ,
|
|
|
|
B_SELECT_HIGH_PRI_WRITE,
|
|
|
|
|
|
|
|
B_SELECT_DISCONNECTED
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef COMPILE_FOR_R5
|
2004-10-04 19:44:00 +04:00
|
|
|
extern void notify_select_event(struct selectsync *sync, uint32 ref);
|
2004-10-01 04:28:57 +04:00
|
|
|
#else
|
|
|
|
extern status_t notify_select_event(struct selectsync *sync, uint32 ref, uint8 event);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _DRIVERS_SELECT_H */
|