server: Add wl_resource_get_id()

This commit is contained in:
Kristian Høgsberg 2013-06-07 01:00:30 -04:00
parent 57f74af278
commit bca4124045
2 changed files with 8 additions and 0 deletions

View file

@ -440,6 +440,12 @@ wl_resource_destroy(struct wl_resource *resource)
}
}
WL_EXPORT uint32_t
wl_resource_get_id(struct wl_resource *resource)
{
return resource->object.id;
}
WL_EXPORT struct wl_list *
wl_resource_get_link(struct wl_resource *resource)
{