client: Add wl_object_is_zombie() helper function

Add a helper function which determines whether or not an object is a
zombie.

[daniels: Extracted from Derek's bespoke-zombie patch as an intermediate
          step.]

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Derek Foreman 2017-12-28 15:15:46 +00:00 committed by Daniel Stone
parent b4cf9e7d5e
commit 69fab4fffc
3 changed files with 14 additions and 3 deletions

View file

@ -190,6 +190,9 @@ wl_connection_demarshal(struct wl_connection *connection,
struct wl_map *objects,
const struct wl_message *message);
bool
wl_object_is_zombie(struct wl_map *map, uint32_t id);
int
wl_closure_lookup_objects(struct wl_closure *closure, struct wl_map *objects);