wayland-server: Add functions to wl_global
authorOlivier Fourdan <ofourdan@redhat.com>
Tue, 18 Oct 2016 14:23:40 +0000 (16:23 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 24 Jan 2017 13:49:03 +0000 (15:49 +0200)
commit65b773e51fe874c78785fe3e63a8d6972fa0c57c
tree11a041768b91469f02a3f6018cadd75cd394a3ab
parentd915447365be68a39607a176e03e06a05cb8a72d
wayland-server: Add functions to wl_global

When using a wl_global, a server may need to retrieve the associated
wl_interface and user data.

Add a couple of convenient functions wl_global_get_interface() and
wl_global_get_user_data() for this purpose.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/wayland-server-core.h
src/wayland-server.c