aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland-client.h
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2012-10-11 14:55:59 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-10-11 09:59:40 -0400
commitff4afd6c0c0a1dd5a49d7078c52a6a037089341a (patch)
treecc2d496c295d5321df18bfe9a9b5ae71d6b3fc7d /src/wayland-client.h
parentprotocol: clarify multiple wl_surface.attach (diff)
downloadwayland-ff4afd6c0c0a1dd5a49d7078c52a6a037089341a.tar
wayland-ff4afd6c0c0a1dd5a49d7078c52a6a037089341a.tar.gz
wayland-ff4afd6c0c0a1dd5a49d7078c52a6a037089341a.tar.bz2
wayland-ff4afd6c0c0a1dd5a49d7078c52a6a037089341a.tar.lz
wayland-ff4afd6c0c0a1dd5a49d7078c52a6a037089341a.tar.xz
wayland-ff4afd6c0c0a1dd5a49d7078c52a6a037089341a.tar.zst
wayland-ff4afd6c0c0a1dd5a49d7078c52a6a037089341a.zip
client: Fix double locking bug
The function wl_proxy_create_for_id() would try to acquire the display lock, but the only call path leading to it would call it with the lock already acquired. This patch removes the attempt to acquire the lock and makes the function static. It was exported before because client had to create proxy's manually when the server sent a new object id, but since commit 9de9e39f [1] this is no longer necessary. [1] commit 9de9e39f87adfce1ea9755e394928756254c0ba2 Author: Kristian Høgsberg <krh@bitplanet.net> Date: Thu Jun 28 22:01:58 2012 -0400 Allocate client proxy automatically for new objects v2: Change the right function. Previous patch changed wl_proxy_create() instead of wl_proxy_create_for_id().
Diffstat (limited to 'src/wayland-client.h')
-rw-r--r--src/wayland-client.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wayland-client.h b/src/wayland-client.h
index f064010..cb1be9c 100644
--- a/src/wayland-client.h
+++ b/src/wayland-client.h
@@ -39,9 +39,6 @@ void wl_event_queue_destroy(struct wl_event_queue *queue);
void wl_proxy_marshal(struct wl_proxy *p, uint32_t opcode, ...);
struct wl_proxy *wl_proxy_create(struct wl_proxy *factory,
const struct wl_interface *interface);
-struct wl_proxy *wl_proxy_create_for_id(struct wl_proxy *factory,
- uint32_t id,
- const struct wl_interface *interface);
void wl_proxy_destroy(struct wl_proxy *proxy);
int wl_proxy_add_listener(struct wl_proxy *proxy,