[PATCH wayland 3/4] client: Make proxy_destroy a static function

Jonas Ådahl jadahl at gmail.com
Wed Apr 27 07:37:40 UTC 2016


proxy_destroy() is just the implementation of the atomic part of
wl_proxy_destroy(), so lets make it static.

Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
 src/wayland-client.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/wayland-client.c b/src/wayland-client.c
index f21b5f7..6de91cd 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -253,9 +253,6 @@ decrease_closure_args_refcount(struct wl_closure *closure)
 	}
 }
 
-void
-proxy_destroy(struct wl_proxy *proxy);
-
 static void
 wl_event_queue_release(struct wl_event_queue *queue)
 {
@@ -405,7 +402,7 @@ wl_proxy_create_for_id(struct wl_proxy *factory,
 	return proxy;
 }
 
-void
+static void
 proxy_destroy(struct wl_proxy *proxy)
 {
 	if (proxy->flags & WL_PROXY_FLAG_ID_DELETED)
-- 
2.5.5



More information about the wayland-devel mailing list