aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland-server-core.h
diff options
context:
space:
mode:
authorGiulio Camuffo <giuliocamuffo@gmail.com>2016-08-11 17:23:10 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-08-12 11:53:16 +0300
commit2f617250d27ec3258071077997934c43948c384b (patch)
tree5f085f46b06b8b80f91cd672947916fba9084445 /src/wayland-server-core.h
parentAdd a resource creation signal (diff)
downloadwayland-2f617250d27ec3258071077997934c43948c384b.tar
wayland-2f617250d27ec3258071077997934c43948c384b.tar.gz
wayland-2f617250d27ec3258071077997934c43948c384b.tar.bz2
wayland-2f617250d27ec3258071077997934c43948c384b.tar.lz
wayland-2f617250d27ec3258071077997934c43948c384b.tar.xz
wayland-2f617250d27ec3258071077997934c43948c384b.tar.zst
wayland-2f617250d27ec3258071077997934c43948c384b.zip
Add API to retrieve and iterate over the resources list of a client
To complement on the new resource created signal, this allows to iterate over the existing resources of a client. Signed-off-by: Giulio Camuffo <giulio.camuffo@kdab.com> Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com> [Pekka: added empty lines, init ret in for_each_helper()] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'src/wayland-server-core.h')
-rw-r--r--src/wayland-server-core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wayland-server-core.h b/src/wayland-server-core.h
index bb0a989..56e8d80 100644
--- a/src/wayland-server-core.h
+++ b/src/wayland-server-core.h
@@ -216,6 +216,15 @@ void
wl_client_add_resource_created_listener(struct wl_client *client,
struct wl_listener *listener);
+typedef enum wl_iterator_result (*wl_client_for_each_resource_iterator_func_t)(
+ struct wl_resource *resource,
+ void *user_data);
+
+void
+wl_client_for_each_resource(struct wl_client *client,
+ wl_client_for_each_resource_iterator_func_t iterator,
+ void *user_data);
+
/** \class wl_listener
*
* \brief A single listener for Wayland signals