server: add wl_resource_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:
Isaac Freund 2025-05-06 23:48:57 +02:00 committed by Simon Ser
parent 4497232102
commit 8cad6f7b82
2 changed files with 17 additions and 0 deletions

View file

@ -621,6 +621,9 @@ wl_resource_instance_of(struct wl_resource *resource,
const char *
wl_resource_get_class(const struct wl_resource *resource);
const struct wl_interface *
wl_resource_get_interface(struct wl_resource *resource);
void
wl_resource_add_destroy_listener(struct wl_resource *resource,
struct wl_listener *listener);