Commit bca41240 authored by Kristian Høgsberg's avatar Kristian Høgsberg

server: Add wl_resource_get_id()

parent 57f74af2
......@@ -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)
{
......
......@@ -256,6 +256,8 @@ wl_client_get_display(struct wl_client *client);
void
wl_resource_destroy(struct wl_resource *resource);
uint32_t
wl_resource_get_id(struct wl_resource *resource);
struct wl_list *
wl_resource_get_link(struct wl_resource *resource);
struct wl_client *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment