Add README for the adventurous, allow evdev override from getenv().
[profile/ivi/wayland.git] / connection.h
1 #ifndef _CONNECTION_H_
2 #define _CONNECTION_H_
3
4 struct wl_connection;
5
6 #define WL_CONNECTION_READABLE 0x01
7 #define WL_CONNECTION_WRITABLE 0x02
8
9 typedef int (*wl_connection_update_func_t)(struct wl_connection *connection,
10                                            uint32_t mask, void *data);
11
12 struct wl_connection *wl_connection_create(int fd,
13                                            wl_connection_update_func_t update,
14                                            void *data);
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);
20
21 #endif