blob: 2d6c799a0633036ba1602bc01b1030714bfa3e4f [file] [log] [blame]
Kristian Høgsberga67a71a2008-10-07 10:10:36 -04001#ifndef _WAYLAND_CLIENT_H
2#define _WAYLAND_CLIENT_H
3
4struct wl_connection;
5struct wl_display;
6struct wl_surface;
7
8struct wl_connection *
9wl_connection_create(const char *address);
10void
11wl_connection_destroy(struct wl_connection *connection);
12int
13wl_connection_get_fd(struct wl_connection *connection);
14void
15wl_connection_iterate(struct wl_connection *connection);
16int
17wl_connection_flush(struct wl_connection *connection);
18
19struct wl_display *
20wl_connection_get_display(struct wl_connection *connection);
21struct wl_surface *
22wl_display_create_surface(struct wl_display *display);
23
Kristian Høgsberg05eff512008-10-07 10:10:36 -040024void wl_surface_destroy(struct wl_surface *surface);
25void wl_surface_attach(struct wl_surface *surface,
26 uint32_t name, int width, int height, int stride);
27void wl_surface_map(struct wl_surface *surface,
28 int32_t x, int32_t y, int32_t width, int32_t height);
Kristian Høgsberga67a71a2008-10-07 10:10:36 -040029
30#endif