Fix WL_EVENT_WRITEABLE typo

This commit is contained in:
Kristian Høgsberg 2011-12-28 22:47:37 -05:00
parent c1b9203e5a
commit d6465c5b40
3 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@ wl_event_source_fd_dispatch(struct wl_event_source *source,
if (ep->events & EPOLLIN)
mask |= WL_EVENT_READABLE;
if (ep->events & EPOLLOUT)
mask |= WL_EVENT_WRITEABLE;
mask |= WL_EVENT_WRITABLE;
return fd_source->func(fd_source->fd, mask, fd_source->base.data);
}
@ -118,7 +118,7 @@ wl_event_loop_add_fd(struct wl_event_loop *loop,
memset(&ep, 0, sizeof ep);
if (mask & WL_EVENT_READABLE)
ep.events |= EPOLLIN;
if (mask & WL_EVENT_WRITEABLE)
if (mask & WL_EVENT_WRITABLE)
ep.events |= EPOLLOUT;
ep.data.ptr = source;
@ -141,7 +141,7 @@ wl_event_source_fd_update(struct wl_event_source *source, uint32_t mask)
memset(&ep, 0, sizeof ep);
if (mask & WL_EVENT_READABLE)
ep.events |= EPOLLIN;
if (mask & WL_EVENT_WRITEABLE)
if (mask & WL_EVENT_WRITABLE)
ep.events |= EPOLLOUT;
ep.data.ptr = source;

View File

@ -180,7 +180,7 @@ wl_client_connection_data(int fd, uint32_t mask, void *data)
if (mask & WL_EVENT_READABLE)
cmask |= WL_CONNECTION_READABLE;
if (mask & WL_EVENT_WRITEABLE)
if (mask & WL_EVENT_WRITABLE)
cmask |= WL_CONNECTION_WRITABLE;
len = wl_connection_data(connection, cmask);
@ -261,7 +261,7 @@ wl_client_connection_update(struct wl_connection *connection,
if (mask & WL_CONNECTION_READABLE)
emask |= WL_EVENT_READABLE;
if (mask & WL_CONNECTION_WRITABLE)
emask |= WL_EVENT_WRITEABLE;
emask |= WL_EVENT_WRITABLE;
return wl_event_source_fd_update(client->source, emask);
}

View File

@ -33,7 +33,7 @@ extern "C" {
enum {
WL_EVENT_READABLE = 0x01,
WL_EVENT_WRITEABLE = 0x02
WL_EVENT_WRITABLE = 0x02
};
struct wl_event_loop;