mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -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_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_EXPORT void
|
||||||
wl_resource_post_no_memory(struct wl_resource *resource)
|
wl_resource_post_no_memory(struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,8 @@ struct wl_resource *
|
||||||
wl_client_new_object(struct wl_client *client,
|
wl_client_new_object(struct wl_client *client,
|
||||||
const struct wl_interface *interface,
|
const struct wl_interface *interface,
|
||||||
const void *implementation, void *data);
|
const void *implementation, void *data);
|
||||||
|
struct wl_resource *
|
||||||
|
wl_client_get_object(struct wl_client *client, uint32_t id);
|
||||||
|
|
||||||
struct wl_listener {
|
struct wl_listener {
|
||||||
struct wl_list link;
|
struct wl_list link;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue