Re: [PATCH wayland v3 06/10] util: Pass flags to map iterators

2017-12-27 Thread Daniel Stone
Hi, On 6 December 2017 at 17:22, Derek Foreman wrote: > static enum wl_iterator_result > -destroy_resource(void *element, void *data) > +_destroy_resource(void *element, void *data, uint32_t flags) > { > struct wl_resource *resource = element; > - struct wl_client *client = resour

[PATCH wayland v3 06/10] util: Pass flags to map iterators

2017-12-06 Thread Derek Foreman
On the client side we're going to need to know if an object from the map is a zombie before we attempt to dereference it, so we need to pass this to the iterator. Reviewed-by: Daniel Stone Signed-off-by: Derek Foreman --- src/wayland-private.h | 3 ++- src/wayland-server.c | 21 ++