1 #ifndef _WAYLAND_CLIENT_H
2 #define _WAYLAND_CLIENT_H
4 #include "connection.h"
9 struct wl_display *wl_display_create(const char *address,
10 wl_connection_update_func_t update, void *data);
11 void wl_display_destroy(struct wl_display *display);
12 int wl_display_get_fd(struct wl_display *display);
13 void wl_display_iterate(struct wl_display *display, uint32_t mask);
15 typedef void (*wl_display_event_func_t)(struct wl_display *display,
17 uint32_t arg1, uint32_t arg2,
20 void wl_display_set_event_handler(struct wl_display *display,
21 wl_display_event_func_t handler,
26 wl_display_create_surface(struct wl_display *display);
28 void wl_surface_destroy(struct wl_surface *surface);
29 void wl_surface_attach(struct wl_surface *surface,
30 uint32_t name, int width, int height, int stride);
31 void wl_surface_map(struct wl_surface *surface,
32 int32_t x, int32_t y, int32_t width, int32_t height);