diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-12-28 22:47:37 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-12-28 22:51:34 -0500 |
commit | d6465c5b402362c730c703f3f6dd5deddefec113 (patch) | |
tree | 092e76e119bacdf3c934c84bfbea58203de61513 | |
parent | c1b9203e5adc499677ddb69720213ff63ca66678 (diff) |
Fix WL_EVENT_WRITEABLE typo
-rw-r--r-- | src/event-loop.c | 6 | ||||
-rw-r--r-- | src/wayland-server.c | 4 | ||||
-rw-r--r-- | src/wayland-server.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/event-loop.c b/src/event-loop.c index de1863a..2dfe0ae 100644 --- a/src/event-loop.c +++ b/src/event-loop.c @@ -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; diff --git a/src/wayland-server.c b/src/wayland-server.c index 415173b..89e8a81 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -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); } diff --git a/src/wayland-server.h b/src/wayland-server.h index 8019c56..5176a09 100644 --- a/src/wayland-server.h +++ b/src/wayland-server.h @@ -33,7 +33,7 @@ extern "C" { enum { WL_EVENT_READABLE = 0x01, - WL_EVENT_WRITEABLE = 0x02 + WL_EVENT_WRITABLE = 0x02 }; struct wl_event_loop; |