Add wl_client_get_object()

This commit is contained in:
Kristian Høgsberg 2012-04-27 11:28:06 -04:00
parent 4fd3696f98
commit ac73a74f43
2 changed files with 8 additions and 0 deletions

View file

@ -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)
{