wayland-server: Add method to get global name

This is useful for protocol designs where globals need to be referenced
in some manner.

Signed-off-by: Andri Yngvason <andri@yngvason.is>
This commit is contained in:
Andri Yngvason 2022-11-21 22:08:15 +00:00 committed by Simon Ser
parent d443241635
commit d16d39f74a
2 changed files with 21 additions and 0 deletions

View file

@ -279,6 +279,10 @@ wl_display_set_global_filter(struct wl_display *display,
const struct wl_interface *
wl_global_get_interface(const struct wl_global *global);
uint32_t
wl_global_get_name(const struct wl_global *global,
const struct wl_client *client);
uint32_t
wl_global_get_version(const struct wl_global *global);