Add README for the adventurous, allow evdev override from getenv().
[profile/ivi/wayland.git] / wayland-client.h
1 #ifndef _WAYLAND_CLIENT_H
2 #define _WAYLAND_CLIENT_H
3
4 #include "connection.h"
5
6 struct wl_display;
7 struct wl_surface;
8
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);
14
15 typedef void (*wl_display_event_func_t)(struct wl_display *display,
16                                         uint32_t opcode,
17                                         uint32_t arg1, uint32_t arg2,
18                                         void *data);
19
20 void wl_display_set_event_handler(struct wl_display *display,
21                                   wl_display_event_func_t handler,
22                                   void *data);
23
24
25 struct wl_surface *
26 wl_display_create_surface(struct wl_display *display);
27
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);
33
34 #endif