mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
Add wl_proxy_get_id()
This commit is contained in:
parent
ac73a74f43
commit
35fc72eb8b
2 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue