Kristian Høgsberg | a67a71a | 2008-10-07 10:10:36 -0400 | [diff] [blame^] | 1 | #ifndef _WAYLAND_CLIENT_H |
| 2 | #define _WAYLAND_CLIENT_H |
| 3 | |
| 4 | struct wl_connection; |
| 5 | struct wl_display; |
| 6 | struct wl_surface; |
| 7 | |
| 8 | struct wl_connection * |
| 9 | wl_connection_create(const char *address); |
| 10 | void |
| 11 | wl_connection_destroy(struct wl_connection *connection); |
| 12 | int |
| 13 | wl_connection_get_fd(struct wl_connection *connection); |
| 14 | void |
| 15 | wl_connection_iterate(struct wl_connection *connection); |
| 16 | int |
| 17 | wl_connection_flush(struct wl_connection *connection); |
| 18 | |
| 19 | struct wl_display * |
| 20 | wl_connection_get_display(struct wl_connection *connection); |
| 21 | struct wl_surface * |
| 22 | wl_display_create_surface(struct wl_display *display); |
| 23 | |
| 24 | void |
| 25 | wl_surface_attach(struct wl_surface *surface, |
| 26 | uint32_t name, int width, int height, int stride); |
| 27 | |
| 28 | #endif |