mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
Add wl_client_get_object()
This commit is contained in:
parent
4fd3696f98
commit
ac73a74f43
2 changed files with 8 additions and 0 deletions
|
|
@ -374,6 +374,12 @@ wl_client_add_resource(struct wl_client *client,
|
|||
wl_signal_init(&resource->destroy_signal);
|
||||
}
|
||||
|
||||
WL_EXPORT struct wl_resource *
|
||||
wl_client_get_object(struct wl_client *client, uint32_t id)
|
||||
{
|
||||
return wl_map_lookup(&client->objects, id);
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
wl_resource_post_no_memory(struct wl_resource *resource)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue