summaryrefslogtreecommitdiff
path: root/src/wayland-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland-client.c')
-rw-r--r--src/wayland-client.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c
index 785f4ee..935e5f1 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -1127,6 +1127,18 @@ wl_proxy_get_id(struct wl_proxy *proxy)
return proxy->object.id;
}
+/** Get the interface name (class) of a proxy object
+ *
+ * \param proxy The proxy object
+ * \return The interface name of the object associated with the proxy
+ *
+ * \memberof wl_proxy
+ */
+WL_EXPORT const char *
+wl_proxy_get_class(struct wl_proxy *proxy)
+{
+ return proxy->object.interface->name;
+}
/** Assign a proxy to an event queue
*