aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-12-28 15:30:09 +0000
committerDaniel Stone <daniels@collabora.com>2017-12-28 19:43:20 +0000
commitc380adc554a3d0e2a567ff07deab020a3068304c (patch)
tree0846bcceef86d5861674bf5349bdbc6f8f52958b /src
parentclient: Restructure delete_id handler control flow (diff)
downloadwayland-c380adc554a3d0e2a567ff07deab020a3068304c.tar
wayland-c380adc554a3d0e2a567ff07deab020a3068304c.tar.gz
wayland-c380adc554a3d0e2a567ff07deab020a3068304c.tar.bz2
wayland-c380adc554a3d0e2a567ff07deab020a3068304c.tar.lz
wayland-c380adc554a3d0e2a567ff07deab020a3068304c.tar.xz
wayland-c380adc554a3d0e2a567ff07deab020a3068304c.tar.zst
wayland-c380adc554a3d0e2a567ff07deab020a3068304c.zip
client: Remove WL_ZOMBIE_OBJECT global
Since we now have the WL_MAP_ENTRY_ZOMBIE flag to determine whether or not a client-side object is a zombie, we can remove the faux object. [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>
Diffstat (limited to 'src')
-rw-r--r--src/wayland-client.c2
-rw-r--r--src/wayland-private.h3
-rw-r--r--src/wayland-util.c2
3 files changed, 1 insertions, 6 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c
index 83f76ec..21ef5b0 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -411,7 +411,7 @@ proxy_destroy(struct wl_proxy *proxy)
wl_map_insert_at(&proxy->display->objects,
WL_MAP_ENTRY_ZOMBIE,
proxy->object.id,
- WL_ZOMBIE_OBJECT);
+ NULL);
} else {
wl_map_insert_at(&proxy->display->objects, 0,
proxy->object.id, NULL);
diff --git a/src/wayland-private.h b/src/wayland-private.h
index b0d129f..8e94864 100644
--- a/src/wayland-private.h
+++ b/src/wayland-private.h
@@ -57,9 +57,6 @@ struct wl_object {
uint32_t id;
};
-extern struct wl_object global_zombie_object;
-#define WL_ZOMBIE_OBJECT ((void*)&global_zombie_object)
-
int
wl_interface_equal(const struct wl_interface *iface1,
const struct wl_interface *iface2);
diff --git a/src/wayland-util.c b/src/wayland-util.c
index ce387f4..3a471a8 100644
--- a/src/wayland-util.c
+++ b/src/wayland-util.c
@@ -153,8 +153,6 @@ wl_array_copy(struct wl_array *array, struct wl_array *source)
/** \cond */
-struct wl_object global_zombie_object;
-
int
wl_interface_equal(const struct wl_interface *a, const struct wl_interface *b)
{