mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
client: add wl_proxy_get_interface()
This is useful for the wayland bindings/scanner I'm working on for a dynamically typed language. Signed-off-by: Isaac Freund <mail@isaacfreund.com>
This commit is contained in:
parent
3214f858e2
commit
4497232102
2 changed files with 17 additions and 0 deletions
|
|
@ -221,6 +221,9 @@ wl_proxy_get_tag(struct wl_proxy *proxy);
|
||||||
const char *
|
const char *
|
||||||
wl_proxy_get_class(struct wl_proxy *proxy);
|
wl_proxy_get_class(struct wl_proxy *proxy);
|
||||||
|
|
||||||
|
const struct wl_interface *
|
||||||
|
wl_proxy_get_interface(struct wl_proxy *proxy);
|
||||||
|
|
||||||
struct wl_display *
|
struct wl_display *
|
||||||
wl_proxy_get_display(struct wl_proxy *proxy);
|
wl_proxy_get_display(struct wl_proxy *proxy);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2513,6 +2513,20 @@ wl_proxy_get_class(struct wl_proxy *proxy)
|
||||||
return proxy->object.interface->name;
|
return proxy->object.interface->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Get the interface of a proxy object
|
||||||
|
*
|
||||||
|
* \param proxy The proxy object
|
||||||
|
* \return The interface of the object associated with the proxy
|
||||||
|
*
|
||||||
|
* \memberof wl_proxy
|
||||||
|
* \since 1.24
|
||||||
|
*/
|
||||||
|
WL_EXPORT const struct wl_interface *
|
||||||
|
wl_proxy_get_interface(struct wl_proxy *proxy)
|
||||||
|
{
|
||||||
|
return proxy->object.interface;
|
||||||
|
}
|
||||||
|
|
||||||
/** Get the display of a proxy object
|
/** Get the display of a proxy object
|
||||||
*
|
*
|
||||||
* \param proxy The proxy object
|
* \param proxy The proxy object
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue