summaryrefslogtreecommitdiffstats
path: root/wayland.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-10-11 18:40:23 -0400
committerKristian Høgsberg <krh@redhat.com>2008-11-06 10:51:58 -0500
commitf921289954840063722c8e3d541c5089b34a082a (patch)
treefd68fc7ed9a3878e16be2955c17fb6e3453a16d8 /wayland.h
parent16eb6753991d33cc2a90e6f8d1b970cf4603ef0e (diff)
downloadwayland-f921289954840063722c8e3d541c5089b34a082a.tar.gz
wayland-f921289954840063722c8e3d541c5089b34a082a.tar.xz
wayland-f921289954840063722c8e3d541c5089b34a082a.zip
Handle multiple clients better.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/wayland.h b/wayland.h
index fc8f0fc..2865cfe 100644
--- a/wayland.h
+++ b/wayland.h
@@ -84,6 +84,13 @@ struct wl_map {
void wl_surface_set_data(struct wl_surface *surface, void *data);
void *wl_surface_get_data(struct wl_surface *surface);
+struct wl_surface_iterator;
+struct wl_surface_iterator *
+wl_surface_iterator_create(struct wl_display *display, uint32_t mask);
+int wl_surface_iterator_next(struct wl_surface_iterator *iterator,
+ struct wl_surface **surface);
+void wl_surface_iterator_destroy(struct wl_surface_iterator *iterator);
+
struct wl_compositor {
struct wl_compositor_interface *interface;
};
@@ -100,7 +107,7 @@ struct wl_compositor_interface {
struct wl_surface *surface, struct wl_map *map);
};
-struct wl_compositor *wl_compositor_create(void);
+struct wl_compositor *wl_compositor_create(struct wl_display *display);
void wl_display_set_compositor(struct wl_display *display,
struct wl_compositor *compositor);