6 #define WL_CONNECTION_READABLE 0x01
7 #define WL_CONNECTION_WRITABLE 0x02
9 typedef int (*wl_connection_update_func_t)(struct wl_connection *connection,
10 uint32_t mask, void *data);
12 struct wl_connection *wl_connection_create(int fd,
13 wl_connection_update_func_t update,
15 void wl_connection_destroy(struct wl_connection *connection);
16 void wl_connection_copy(struct wl_connection *connection, void *data, size_t size);
17 void wl_connection_consume(struct wl_connection *connection, size_t size);
18 int wl_connection_data(struct wl_connection *connection, uint32_t mask);
19 void wl_connection_write(struct wl_connection *connection, const void *data, size_t count);