os: Add X_NOTIFY_ERROR value
This provides a way to report errors on file descriptors that is better defined than "any bits which are not READ or WRITE". Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
e6636b4383
commit
0d294462a5
|
@ -148,9 +148,10 @@ extern _X_EXPORT void CloseDownConnection(ClientPtr /*client */ );
|
|||
|
||||
typedef void (*NotifyFdProcPtr)(int fd, int ready, void *data);
|
||||
|
||||
#define X_NOTIFY_NONE 0
|
||||
#define X_NOTIFY_READ 1
|
||||
#define X_NOTIFY_WRITE 2
|
||||
#define X_NOTIFY_NONE 0x0
|
||||
#define X_NOTIFY_READ 0x1
|
||||
#define X_NOTIFY_WRITE 0x2
|
||||
#define X_NOTIFY_ERROR 0x4 /* don't need to select for, always reported */
|
||||
|
||||
extern _X_EXPORT Bool SetNotifyFd(int fd, NotifyFdProcPtr notify_fd, int mask, void *data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue