Add a resource creation signal
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Thu, 11 Aug 2016 15:23:09 +0000 (17:23 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 12 Aug 2016 08:43:02 +0000 (11:43 +0300)
commitc55c1d787cb542de5ffee702c7ca9bcd27b56bef
tree485df5eba37a039b82b5ededcb9be7b1630f1bf0
parent596024f728b0a1292ee69a80dd72a85167870936
Add a resource creation signal

This change allows to add a resource creation listener to a wl_client,
which will be notified when a new resource is created for that client.
The alternative would be to have a per wl_display listener, but i think
that resources are really client specific objects, so it makes sense
to use the wl_client as the context.

Signed-off-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
[Pekka: added wl_list_remove() in TEST(new_resource).]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/wayland-server-core.h
src/wayland-server.c
tests/compositor-introspection-test.c