mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-05-03 06:46:33 -04:00
client: Add WL_MAP_ENTRY_ZOMBIE flag
Add a new map entry flag to indicate that the object received is valid,
but a zombie. Previously this relied on a fixed object pointer, but
future patches in this series will have map entries returning either
NULL, or a different structure type entirely, for zombie objects.
wl_object_is_zombie() now solely uses the new flag to determine whether
or not the 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:
parent
69fab4fffc
commit
07d7a9968d
3 changed files with 21 additions and 9 deletions
|
|
@ -69,7 +69,8 @@ wl_interface_equal(const struct wl_interface *iface1,
|
|||
* flags. If more flags are ever added, the implementation of wl_map will have
|
||||
* to change to allow for new flags */
|
||||
enum wl_map_entry_flags {
|
||||
WL_MAP_ENTRY_LEGACY = (1 << 0)
|
||||
WL_MAP_ENTRY_LEGACY = (1 << 0), /* Server side only */
|
||||
WL_MAP_ENTRY_ZOMBIE = (1 << 0) /* Client side only */
|
||||
};
|
||||
|
||||
struct wl_map {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue