Add a wl_resource_instance_of function

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Jason Ekstrand 2013-06-20 20:36:47 -05:00 committed by Kristian Høgsberg
parent 96afa34776
commit 5ac5d55d81
4 changed files with 21 additions and 4 deletions

View file

@ -273,6 +273,11 @@ wl_resource_get_user_data(struct wl_resource *resource);
void
wl_resource_set_destructor(struct wl_resource *resource,
wl_resource_destroy_func_t destroy);
int
wl_resource_instance_of(struct wl_resource *resource,
const struct wl_interface *interface,
const void *implementation);
void
wl_resource_add_destroy_listener(struct wl_resource *resource,
struct wl_listener * listener);