Commit 35fc72eb authored by Kristian Høgsberg's avatar Kristian Høgsberg

Add wl_proxy_get_id()

parent ac73a74f
......@@ -583,3 +583,9 @@ wl_proxy_get_user_data(struct wl_proxy *proxy)
{
return proxy->user_data;
}
WL_EXPORT uint32_t
wl_proxy_get_id(struct wl_proxy *proxy)
{
return proxy->object.id;
}
......@@ -45,6 +45,7 @@ int wl_proxy_add_listener(struct wl_proxy *proxy,
void (**implementation)(void), void *data);
void wl_proxy_set_user_data(struct wl_proxy *proxy, void *user_data);
void *wl_proxy_get_user_data(struct wl_proxy *proxy);
uint32_t wl_proxy_get_id(struct wl_proxy *proxy);
void *wl_display_bind(struct wl_display *display,
uint32_t name, const struct wl_interface *interface);
......
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