mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
client: Add method to get display for a given proxy
This can be useful for additional validation purposes when handling proxies. This is similar to existing server side API wl_global_get_display. Signed-off-by: David Edmundson <david@davidedmundson.co.uk>
This commit is contained in:
parent
379a6f6759
commit
edb943dc64
3 changed files with 19 additions and 0 deletions
|
|
@ -2338,6 +2338,20 @@ wl_proxy_get_class(struct wl_proxy *proxy)
|
|||
return proxy->object.interface->name;
|
||||
}
|
||||
|
||||
/** Get the display of a proxy object
|
||||
*
|
||||
* \param proxy The proxy object
|
||||
* \return The wl_display the proxy is associated with
|
||||
*
|
||||
* \memberof wl_proxy
|
||||
* \since 1.23
|
||||
*/
|
||||
WL_EXPORT struct wl_display *
|
||||
wl_proxy_get_display(struct wl_proxy *proxy)
|
||||
{
|
||||
return proxy->display;
|
||||
}
|
||||
|
||||
/** Assign a proxy to an event queue
|
||||
*
|
||||
* \param proxy The proxy object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue